Add maxlength attribute