結果 : pop last character of string javascript