結果 : remove last char from a string javascript