private String getCorrectWorldFileName(File folder, String text)
    {
        int i = 1;
        for(int ii = 0;ii<ILLEGAL_WORLD_NAMES.length;ii++)
        {
            if(text.equalsIgnoreCase(ILLEGAL_WORLD_NAMES[ii]))
                text = "_"+text+"_";
        }
        for(int ii =0;ii<ILLEGAL_WORLD_NAME_COMPONENTS.length;ii++)
        {
            text = text.replace(ILLEGAL_WORLD_NAME_COMPONENTS[ii], '_');
        }
        if(new File(folder, text).exists())
        {
            while(new File(folder, text+ " ("+i+")").exists())
            {
                i++;
            }
            return text+" ("+i+")";
        }
        return text;
    }