lstrip values before checking for json values

Fixes #136.
Merge pull request #137 from jamesls/issue-136

lstrip values before checking for json values