Adjust maximum length