Text this: Introduction to Automata Theory, Langauges, and Computation.