How do I get rid of repeating special characters with regular expressions