title: Best way to trim strings after data entry. Should I create a custom model binder?
body: <p>I'm using ASP.NET MVC and I'd like all user entered string fields to be trimmed before they're inserted into the database.   And since I have many data entry forms, I'm looking for an elegant way to trim all strings instead of explicitly trimming every user supplied string value.  I'm interested to know how and when people are trimming strings.</p>
  
  <p>I thought about perhaps creating a custom model binder and trimming any string values there...that way, all my trimming logic is contained in one place.  Is this a good approach?  Are there any code samples that do this?</p>