Fixed bug where exactly two characters were repeated.