KNP and Trie string search and comparison program