handle errors internally

Reduces granularity
This will fail in the case where more than one space on either side of the string.

```
$string = '  asdfdsf';
if (strlen($string) - strlen(trim($string)) > 1) {
  echo 'BOTH';
}
```
Will print **BOTH**.