結果 : javascript return first n characters of string