subst-char-in-string

subst-char-in-string is a compiled Lisp function in `subr.el'.

(subst-char-in-string FROMCHAR TOCHAR STRING &optional INPLACE)

Replace FROMCHAR with TOCHAR in STRING each time it occurs.
Unless optional argument INPLACE is non-nil, return a new string.