private function putSpace(string $str, int $max):string
    {
        $i = 0;
        $len = strlen($str);
        $max -= $len;
        $space = "";
        while ($i <= $max) {
            $space .= " ";
            $i++;
        }
        return ($space);
    }