結果 : remove last word of string javascript