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
String objects are immutable.
String
From the docs:
public String replace(char oldChar,char newChar) Returns a string resulting from replacing all occurrences of oldChar in this string with newChar.
public String replace(char oldChar,char newChar)
Returns a string resulting from replacing all occurrences of oldChar in this string with newChar.
Hope this helps.