Refactor fix for consecutive character bug

The previous fix tested every generated word with a regular expression.
This one will generate a new letter if the last two letters were the
same. So there are no wasted words and no expensive regular expressions.