MVC string length validator implementation