My code:

```
  var myNameFilter = /^([a-zA-Z ]+)$/;
  var a = $('#afirstname').val();

  if(a=='') {
    console.log('WT?');  
    return false;
  } else if (!myNameFilter.test(a)) {
      console.log('WT? seriously?'); 
      return false;
  }  
  submit_form();

```

This filtering is not working if someone put the value of `a = ' '` only with some empty spaces.

How to filter that too with the `myNameFilter`?