alphabet sensing in constructing nfa