DFA Automata to recognize characters