commons-file/src/main/java/info/monitorenter/util/StringUtil.java
public static final String appendSpaces(final String s, final int count) {
    StringBuffer tmp = new StringBuffer(s);
    for (int i = 0; i < count; i++) {
      tmp.append(" ");
    }
    return tmp.toString();
  }
public static final String appendSpaces(final String s, final int count) {
    StringBuffer tmp = new StringBuffer(s);
    for (int i = 0; i < count; i++) {
      tmp.append(" ");
    }
    return tmp.toString();
  }
Appends the given amount of spaces to the String.
<p>

Not intended for big append -operations because in a loop alway just one
space is added.
<p>

@param s
the base String to append spaces to.

@param count
the amount of spaces to append.

@return a String consisting of s and count trailing whitespaces.