private String getTabReplacement(int x) {
        int align = 0;
        switch(this) {
            case CONVERT_TO_ONE_SPACE:
                return " ";
            case CONVERT_TO_FOUR_SPACES:
                return "    ";
            case CONVERT_TO_EIGHT_SPACES:
                return "        ";
            case ALIGN_TO_COLUMN_4:
                align = 4 - (x % 4);
                break;
            case ALIGN_TO_COLUMN_8:
                align = 8 - (x % 8);
                break;
        }
        StringBuilder replace = new StringBuilder();
        for(int i = 0; i < align; i++)
            replace.append(" ");
        return replace.toString();
    }