A fix for issue #1, using regex

Fixes the issue with 3 or more of the same consecutive character in a word