code: public static String padleft(String s, int len, char c) {
          s = s.trim();
          if (s.length() > len) {
              return s;
          }
          final StringBuilder sb = new StringBuilder(len);
          int fill = len - s.length();
          while (fill-- > 0) {
              sb.append(c);
          }
          sb.append(s);
          return sb.toString();
      }
docs: Pad to the left
  @param s  string
  @param len desired len
  @param c padding char
  @return padded string