Maxlength changed to length