Correctly trim strings for css properties

* If a unitless value is passed with a space it'll return `1 px`
Merge pull request #1642 from ryanseddon/trimCSSValues

Correctly trim strings for css properties