Move towards sprintf for string building. Save key combinations for detecting dupes in alphabetical order so that we detect dupes no matter what order is used.