Adding a check on input file line length: the examples don't pass it.