@staticmethod
def dict_from_str(string):
    """Reformat the string into a dictionary

        Parameters
        ----------
        string: str
            string that you would like reformatted into a dictionary
        """
    mydict = {}
    if '{' in string:
        string = string.replace('{', '')
    if '}' in string:
        string = string.replace('}', '')
    if ' ' in string and ',' not in string:
        string = string.split(' ')
    elif ',' in string and ', ' not in string:
        string = string.split(',')
    elif ', ' in string:
        string = string.split(', ')
    for i in string:
        value = i.split(':')
        if ' ' in value[0]:
            value[0] = value[0].replace(' ', '')
        if ' ' in value[1]:
            value[1] = value[1].replace(' ', '')
        if value[0] in mydict.keys():
            mydict[value[0]].append(value[1])
        else:
            mydict[value[0]] = [value[1]]
    return mydict
