Modify text parser to make it compatible with Hadoop 2