presto-cli/src/main/java/io/prestosql/cli/AlignedTablePrinter.java/AlignedTablePrinter/align
class AlignedTablePrinter:    private static String align(String s, int maxWidth, int padding, boolean right)
    {
        int width = consoleWidth(s);
        checkState(width <= maxWidth, "string width is greater than max width");
        String large = repeat(" ", (maxWidth - width) + padding);
        String small = repeat(" ", padding);
        return right ? (large + s + small) : (small + s + large);
    }