String Matching and Searching for Auto Complete using a Ternary Search Tree