結果 : get first 10 letter of string javascript