def is_true(value):
    """ Convert various string values to boolean. """
    try:
        return value.lower() in ('yes', 'y', 'true', 'on')
    except Exception:
        raise ValueError('str_value should be a string.')
