code: public static String pad(String value, int length) {
          value = StringUtil.trimToEmpty(value);
          if (value.length() >= length) {
              return value;
          }
  
          return value + StringUtil.repeat(" ", length - value.length());
      }
docs: Adds spaces to the right of the input value until the string has reached the given length. Nothing is done
  if the string already has the given length or if the string is even longer.
  @param value The string to pad (if necessary)
  @param length the desired length
  @return the input string, padded if necessary.