結果 : replace character in string by index javascript