An Automata Based Text Analysis System