Add trimValue option

Hey.

I added trimValue option (default is false)
It works only with strings. Now 'tag ' and 'tag' are the same.