Truncate string at a word near to the limit specified. Avoid word split.
Mask string, mobile number etc. Usefull while logging sensitive content.