If you call string. Replace(char oldChar, char newChar ) it will replace the occurrences of a character with another character. It is a one-for-one replacement. Because of this the length of the resulting string will be the same.
If you call string. Replace(char oldChar, char newChar ) it will replace the occurrences of a character with another character. It is a one-for-one replacement. Because of this the length of the resulting string will be the same.