title: StringLengthAttribute MVC Blank Space at end
body: <p>Okay so I have an attribute set like below. if someone types in a name even one character over the 15 characters they get an error message. This is the expected way it should work except I found one issue. If there are 15 characters plus a blank space at the end of those 15 characters the error is not caught. Why is that and how do I prevent it. </p>
  
  <p>Examples. "Santa Fe MAMMAL " &lt;-- Validation does not catch this.
            "Santa Fe MAMMALS" &lt;-- Validation does catch this. </p>
  
  <pre><code>[StringLength(15, ErrorMessage = "CallerID can be no more than 15 Characters in length including spaces")]
      public string CompanyNameCallerID { get; set; }
  </code></pre>