Pretty much.
Just use whatever string find and replace functions your programming language of choice provides.