making sure that we ignore leading and trailing spaces
Merge pull request #153 from GBH/trailing-space-bug

making sure that we ignore leading and trailing spaces