When you want to replace all instances of a specific character in a text with another, many people intuitively use the replace() method. However, there is a "historical trap" hidden in JavaScript here ...