Ignore the end of the line if the end is reached so that it will not be counted into the barcode reader