結果 : javascript string remove substring from end