結果 : javascript remove substring from end