Limit the input string to the maximum length. If it is longer, it will get cut and have two dots appended to exactly achieve the maximum length.
potentially long input string to shorten
maximum output string length
the abbreviated input string
Limit the input string to the maximum length. If it is longer, it will get cut and have two dots appended to exactly achieve the maximum length.