Added try block that removes species names from each line, leaving only the species codes