TextParser class working