def is_clear_nickname(string, nickname):
    """
    Test if this is a nickname clearing message
    """
    if string.startswith(f"{nickname} cleared the nickname for "):
        return True
                
    if string == f"{nickname} cleared his own nickname.":
        return True
            
    if string == f"{nickname} cleared his own nickname.":
        return True
        
    if string == f"{nickname} cleared your nickname.":
        return True   
    return False