Solve T9 problem in c#