For input automation cs2. Input string. str input. accept, reject or modify. string matching with finite automata.