Strip whitespace from start/end of text

Fixes #11.