title: How to Trim() all inputs by Model in c# MVC
body: <p>I found all value passed by Model is not trimmed in ASP.net MVC3</p>
  
  <p>Is there a way to:</p>
  
  <ol>
  <li>Apply a trim() on every field in Model (all string fields, at least; but all form fields are string before processed by Model, so better trim them all)</li>
  <li>Must before <code>ModelState.IsValid()</code> (because I often found code stucked at weird <code>ModelState.IsValid</code> and later found because the form item did not be trimmed.)</li>
  </ol>
  
  <p>Thanks.</p>