So i\'m using IntelliJ and the replace buzzword is highlighted. Most of the tips are over my head so i ignore them, but what i got for this one was that the result of string
I had the same problem, but i did it like this:
String newWord = oldWord.replace(oldChar,newChar);