ignore whitespace. more compatible with node.js Buffer

`trim` is available in [every browser that matters](http://kangax.github.io/es5-compat-table/)