currLine.split is called three times / line. Perhaps assign currline.split to a variable in next()?