Truncates the specified string to the given number of characters.
The string to be truncated.
The maximum length.
The ellipsis to append to the truncated text.
The truncated string.
Truncates the specified string to the given number of characters.