Clamps a string to a max length and adds "..." at the end if it is too long.
String
Max length
Shortened string
Clamps a string to a max length and adds "..." at the end if it is too long.