結果 : javascript remove substring from string based on index