Check for CR and LF to prevent extra line breaks