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