add: if (string.length > maxLength) string = string.slice(0, maxLength);  
context: function TruncateStringAtWordEnd(string, maxLength, addEllipses){    // Return empty if string is null, undefined, or the empty string    if (!string)      return "";    // We assume they probably don't want whitespace at the beginning    string = string.replace(/^\s+/, '');    if (string.length <= maxLength)      return string;    // We need to truncate the string to maxLength or fewer chars    if (addEllipses)       maxLength -= 3;     string = string.replace(RegExp("(.{0," + maxLength + "})\\s.*"), "$1")    if (addEllipses)      string += "...";    return string;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0732a9c14e65d4363741eb96bec2f1463d9d4428/EdDialogCommon.js/clean/editor/ui/dialogs/content/EdDialogCommon.js