code: public static String trimToSize(String source, int length, String suffix) {
  
          int area = (length > 100) ? length / 2 : length;
          return trimToSize(source, length, area, suffix);
      }
docs: Returns a substring of the source, which is at most length characters long.<p>
  
  If a char is cut, the given <code>suffix</code> is appended to the result.<p>
  
  This is almost the same as calling {@link #trimToSize(String, int, int, String)} with the
  parameters <code>(source, length, length*, suffix)</code>. If <code>length</code>
  if larger then 100, then <code>length* = length / 2</code>,
  otherwise <code>length* = length</code>.<p>
  
  @param source the string to trim
  @param length the maximum length of the string to be returned
  @param suffix the suffix to append in case the String was trimmed
  
  @return a substring of the source, which is at most length characters long