fixes #30: allow leading/trailing whitespace in queries
Merge pull request #31 from michaelficarra/GH-30

fixes #30: allow leading/trailing whitespace in queries