Adding code to remove EOL whitespace