`MAX_DEVICE_NAME_LENGTH` comes from the naming limitation. It is not a good idea to use it as a criteria of text overflow since the font size, or the size of the text area may change in the future. Is there any way to find the actual capacity of the text area?