Fixed not removing new line when reading STDIN files