Implement maximumTextLength property.