consider maxLength property of text vars