def to_dir_str(str_):
    """Convert a str to a str that can be used as a dir path. Specifically,

        * remove spaces
        * remove '
        * replace [] with ()
    """
    str_ = str_.replace(" ", "")
    str_ = str_.replace("'", "")
    str_ = str_.replace("[", "(")
    str_ = str_.replace("]", ")")
    return str_