Fix for the string.trim bug where all whitespce string was not trimmed.
Merge pull request #79 from zimbabao/fix-edge-case-in-trim

Fix for the string.trim bug where all whitespce string was not trimmed.