Changed validation rules with string length to use str class which handles multibyte characters

Signed-off-by: Derek Myers <arcticpro@gmail.com>