Fix case where exceptions with repetitive substrings returned the wrong hyphenation.