Strip any leading or trailing whitespace, Couchbase doesn't like it