code: public static String rightPad( String value , int size , char padChar )
      {
          if (value.length() >= size)
              return value;
          
          StringBuilder result = new StringBuilder(size);
          result.append(value);
          for (int n = 0 ; n < size-value.length() ; n++)
              result.append(padChar);        
          return result.toString();
      }
docs: Right pad the given string