Fixes crash in stripWhitespace.

It crashed when given a string containing only whitespace.
Thanks, mirage.
Merge pull request #5 from hugopeixoto/strip-whitespace-crash

Fixes crash in stripWhitespace.