working solution to T9 spelling problem