Remove unused class, add string length validation attribute.
Fix string length bug, add string length validation