Accounting for empty lines in the input file