Trimming string properties

Jun 12, 2012 at 1:03 AM

What's the best way to change the string serializer to a custom one that trims the value before serializing ? Sending alot of whitespace seems like a waste of bandwidth when sending to a phone.

Thanks