def mybool(string):
    """
    Method that converts a string equal to 'True' or 'False' into type bool

    Args:
        string: (str), a string as 'True' or 'False'

    Returns:
        bool: (bool): bool as True or False

    """
    if string.lower() == 'true':
        return True
    if string.lower() == 'false':
        return False
    raise ValueError