code: public static String alignLeft(Object o, int width, char c) {
          if (null == o)
              return null;
          String s      = o.toString();
          int    length = s.length();
          if (length >= width)
              return s;
          return s + dup(c, width - length);
      }
docs: Fill a certain number of special characters on the right side of the string
  
  @param o     objects that can be to String
  @param width number of characters
  @param c     characters
  @return new characters