Corrected bug in CSV by separating newline checks