結果 : how to replace a character in a string in javascript without using replace method