chartr

chartr(old, new, x)

Replace characters in old with corresponding characters in new. Vectorised.