Review this Java method that truncates a string to at most maxChars characters for a UI label.
maxChars