What's the simplest way to make sure models trim leading and trailing white space from string values.

One inconvenient way seems to be a before\_save filter -- although for something as common as removing white space from strings, maybe there's some config that does that?