public static String padRight(String s, int length) {
    if (s.length() > length) {
      throw new RuntimeException(s + " cannot be padded to length " + length + ", it is too long");
    }
    String t = s;
    for (int i = 0; i < length - s.length(); i++) {
      t += " ";
    }
    return t;
  }
Centers the given string on the <code>PrintWriter</code>

@param s the string to center
@param pw the <code>PrintWriter</code> to print with
geode-junit/src/main/java/perffmwk/Formatter.java