Changed `replace-regexp-in-string` to `subst-char-in-string`.