The function f(x) replaces each character in the input string with a corresponding character.

