breakword
Get index of character after which variable 'word' must be broken given variable 'length' (accounts for wide characters).
trim-characters
Trims text to a certain number of characters. You can define either to break-word to maintain the number of characters limit or characters limit may decrease to avoid breaking words.