Handle replacements in strings of more than only 'wow' or 'mom'.

This also uses the regex for replacement, instead of iterating through
the string and checking each character.
Merge pull request #1 from tec27/more_permissive

Handle replacements in strings of more than only 'wow' or 'mom'.