Refactored normalization for blanks and carriage returns