public static String fixLength(final String text, final int charsNum, final char paddingChar)
    {
        return fixLength(text, charsNum, paddingChar, false);
    }
public static String fixLength ( final String text , final int charsNum , final char paddingChar ) { return fixLength ( text , charsNum , paddingChar , false ) ; }
<p>
Pads or truncates a string to a specified length.
</p>

@param text
String to be fixed
@param charsNum
The fixed length in number of chars
@param paddingChar
The padding character
@return A fixed length string