結果 : remove last 1 character from string javascript