Fixed word being lost when parsing a text file