better

```js
var emailValue = emailField.value;
      if(emailValue) {
        emailValue = emailValue.trim();
      }
```