public static String padLeft(final String s,final int length){
  final int pad=length - s.length();
  return pad > 0 ? getSpaceString(pad) + s : s;
}

public static String padLeft ( final String s , final int length ) { final int pad = length - s . length ( ) ; return pad > 0 ? getSpaceString ( pad ) + s : s ; }
pad a string on the left with spaces till it is at least the specified length .
