converts string characters to corresponding numbers on a flipphone keypad.