There's more...

If more complex logic for the replacement is needed, the regexp package is probably the one that should be used.