Fixed line-by-line input in header and Windows line endings