def str2bool(string):
    """ Convert string to corresponding boolean.
        -  string : str
    """
    if string in ["True","true","1"]:
        return True
    elif string in ["False","false","0"]:
        return False
    else :
        return False