code: public static String padRightAligned(String o, int len) {
      return o.length() >= len ? o : (whitespace(len - o.length()) + o);
    }
docs: Pad a string to a given length by adding whitespace to the left.
  
  @param o original string
  @param len destination length
  @return padded string of at least length len (and o otherwise)