Add replace-string function