The function replaces certain characters in the input string.
