Simplifies regular expressions in CleanUp module.