use nfa to match string