code: public static String padRight(CharSequence self, Number numberOfChars, CharSequence padding) {
          String s = self.toString();
          int numChars = numberOfChars.intValue();
          if (numChars <= s.length()) {
              return s;
          } else {
              return s + getPadding(padding.toString(), numChars - s.length());
          }
      }
docs: Pad a CharSequence to a minimum length specified by <tt>numberOfChars</tt>, adding the supplied padding
  CharSequence as many times as needed to the right.
  
  If the CharSequence is already the same size or bigger than the target <tt>numberOfChars</tt>,
  then the toString() of the original CharSequence is returned. An example:
  <pre>
  ['A', 'BB', 'CCC', 'DDDD'].each{ println it.padRight(5, '#') + it.size() }
  </pre>
  will produce output like:
  <pre>
  A####1
  BB###2
  CCC##3
  DDDD#4
  </pre>
  
  @param self          a CharSequence object
  @param numberOfChars the total minimum number of characters of the resulting CharSequence
  @param padding       the characters used for padding
  @return the CharSequence padded to the right as a String
  @since 1.8.2