private static void appendWithPadding(StringBuilder sb, String s, int width, char padChar) {
    for (int i = 0, padding = width - s.length(); i < padding; i++) sb.append(padChar);
    sb.append(s);
  }
private static void appendWithPadding(StringBuilder sb, String s, int width, char padChar)