public static String padBetween(final String first,final int length,final String last){
  final int padlen=length - (first.length() + last.length());
  return first + (padlen > 0 ? getSpaceString(padlen) : "") + last;
}

public static String padBetween ( final String first , final int length , final String last ) { final int padlen = length - ( first . length ( ) + last . length ( ) ) ; return first + ( padlen > 0 ? getSpaceString ( padlen ) : "" ) + last ; }
pads out two string by inserting spaces between them .
