public static String alignLeft(String substring, int totalWidth, char fill) {
        if (substring.length() > totalWidth) {
            return substring.substring(0, totalWidth);
        } else {
            return substring + repeat("" + fill, totalWidth - substring.length());
        }
    }
Returns a string of the specified length where the substring is located
to the left, padded with a character on the right. If the specified 
{@code totalWidth} is less than the length of the substring, the
substring is returned but with the overflowing characters removed.

@param substring   the substring to align
@param totalWidth  the width of the returned string
@param fill        the character to use for padding
@return            the padded string
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/util/TextUtil.java