def bool_string_to_int(value):
    """
    Convert a boolean string to corresponding integer value
    :param value:  e.g. 'TRUE'
    :return:  1 if string is 'true', 0 otherwise
    :throws:  AttributeError if value is not type of string
    """
    return 1 if value.lower() == 'true' else 0