結果 : replace all instances of character in string javascript