Find and replace characters in String?

Hello.
Checked google, but only found some outdated,homemade functions.
Is there no other way to Find char in a string and replace it?
the shortest function i found was about 30 Lines long.