結果 : javascript replace char in string by index