public static String padAndTruncateString(String s,int fieldSize){
  return padAndTruncateString(s,fieldSize,Setup.isTabEnabled());
}

public static String padAndTruncateString ( String s , int fieldSize ) { return padAndTruncateString ( s , fieldSize , Setup . isTabEnabled ( ) ) ; }
pads out a string by adding spaces to the end of the string , and will remove characters from the end of the string if the string exceeds the field size .
