I need a function from the standard library that replaces all occurrences of a character in a string by another character.
I also need a function from the standard library that replaces all occurrences of a substring in a string by another string.
Are there any such functions in the standard library?