def convert_to_bool(b_str:str):
    
    """Converts a string to a boolean.
    
    b_str (str): A string that spells out True or False, regardless of
                 capitilisation.

    Return bool
    """

    if not isinstance(b_str, str):
        raise TypeError("Input must be a string.")
        
    if b_str.upper() == "TRUE":
        return True
    elif b_str.upper() == "FALSE":
        return False
    else:
        raise ValueError("Please check your spelling for True or False.")