The Java string replace() method will replace a character or substring with another character or string. The syntax for the replace() method is string_name. replace(old_string, new_string) with old_string being the substring you’d like to replace and new_string being the substring that will take its place.
Read moreIs string replace case-sensitive?
The String. Replace() method allows you to easily replace a substring with another substring, or a character with another character, within the contents of a String object. This method is very handy, but it is always case-sensitive .26 Eyl 2012
Read more