def str2bool(string):
    """ Converts a string to a boolean

    :param string: String to convert
    :type string: `str`
    :return: Boolean equivalent
    :rtype: `bool`
    """
    return not (string in ["False", "false", 0, "0"])