String indentMaker(String setting, double spaces) {
        String list = "";
        if (setting.equals("total")) {
            int x = endInd;
            if (paragraphOn && !_endnoteMode) {
                x = parIndent + indent;
            } else if (paragraphOn && _endnoteMode) {
                x = endParInd + endInd;
            } else if (!_endnoteMode) {
                x = indent;
            }
            while (x > 0) {
                list += " ";
                x--;
            }
        }
        if (setting.equals("space")) {
            while (spaces != 0) {
                list += " ";
                spaces--;
            }
        }
        return list;
    }