proper newline chop