public static String alignRight(String substring, int totalWidth) {
        return alignRight(substring, totalWidth, ' ');
    }
Returns a string of the specified length where the substring is located
to the right, padded with spaces on the left. 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
@return            the padded string
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/internal/util/TextUtil.java