Fix validation for environment variables
Remove newlines