Just cleaning a bit the regex

I simplified regex and generalized to all whitespace (same as `trim()` is working on). BTW, `trim()` is a [newer function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim).