結果 : get n characters of string javascript