Ellipsizes a string if its length exceeds maxLength.
The ellipsized string.
The string to ellipsize.
The maximum number of characters to display before adding "…".