docs: private String cleanAndTrimString(String text, int maxTextLength) {
          if (StringUtils.isNotBlank(text)) {
              String cleaned = text.trim().replaceAll("[\\s]+", " ");
              return cleaned.length() <= maxTextLength
                      ? cleaned
                      : cleaned.substring(0, maxTextLength) + " ...";
          }
          return text;
      }