The "Remove domain name" field in Administration -> Authentication -> HTTP settings accepts only 255 characters. At the same time, this setting being stored in config.http_strip_domains as varchar(2048).
Also, field value not being trimmed on form submit.
Starting from version 5.2, it is possible to set value for this field via API using authentication.update. In this case, the value can be 2048 characters long.