結果 : javascript get first n chars of string