Fix for tabs causing input file reading to stop