public static String getUploadCategories(String local, String global) {
        String text = "";
        String raw = "";
        
        if(local.matches(".*\\w.*")) raw += local + ";";
        if(global.matches(".*\\w.*")) raw += global;
        
        if(raw.isEmpty())
            return "";
        
        text += "\n\n";
        String[] cat = raw.split(";");
        boolean b;
        for(int j=0;j<cat.length;++j) {
            b = true;
            for(int k=0; k<j; ++k) {
                if(cat[j].equals(cat[k])) {
                    b = false;
                    break;
                }
            }
            if(b && cat[j].matches(".*\\w.*"))
                text += "[[Category:" + cat[j] + "]]\n";
        }
        text += "[[Category:Uploaded with VicuñaUploader]]";
        
        return text;
    }