Use regular expressions?
To find: To replace with: