Strip leading/trailing whitespace on optimize
Merge pull request #31 from peterjosling/feature/strip-whitespace

Strip leading/trailing whitespace on optimize