public static String rightPad(final String value,String pad,final int length){
  validate(value,NULL_STRING_PREDICATE,NULL_STRING_MSG_SUPPLIER);
  if (value.length() > length) {
    return value;
  }
  return append(value,repeat(pad,length - value.length()));
}

public static String rightPad ( final String value , String pad , final int length ) { validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; if ( value . length ( ) > length ) { return value ; } return append ( value , repeat ( pad , length - value . length ( ) ) ) ; }
returns a new string of a given length such that the ending of the string is padded .
