I am trying to truncate string based on the number of characters of the string and then append ellipsis if number of chars greater than 21.
I have added a truncate class