Strip leading and trailing whitespace for email authentication