string maxLength & minLength should calculate for the characters length (not the byte size)