What function can replace a string with another string?
Example #1: What will replace \"HelloBrother\" with \"Brother\"?
\"HelloBrother\"
\"Brother\"
Example #2
The replace method is what you're looking for.
For example:
String replacedString = someString.replace("HelloBrother", "Brother");