fixInList method
Truncates the string to a maximum length
@param maxLength The maximum length of the string (default: 100) @return The truncated string
Implementation
String fixInList([int maxLength = 100]) {
return substring(0, min(length, maxLength));
}