result = formatString(format, value);
// Get length of the field, alignment (LEFT or RIGHT), pad
int fieldLength = datafield.length();
String align = datafield.align();
char paddCharField = datafield.paddingChar();
char paddChar;
if (fieldLength > 0) {