Tidy up and allow for words with identical match distances.