accepting dos ending lines