結果 : cut off last character of string javascript