added maxStringLength method