def METHOD_NAME(cd):
    parts = cd.split(";")
    for p in parts:
        p = p.strip()
        if p.startswith("filename="):
            name = p[p.find("=") + 1 :]
            if name[0] in ['"', "'"]:
                name = name[1:]
            if name[-1] in ['"', "'"]:
                name = name[:-1]
            return name
    return None