Fixed bug regarding New lines in input files