def convert_into_boolean(string):
    """Convert a string into a boolean."""
    if string.strip().lower() in ['1', 'true', 't', 'y']:
        return True
    if string.strip().lower() in ['0', 'false', 'f', 'n'] or not string:
        return False
    else:
        raise TypeError(f'string {string} is not an identified boolean.')