def is_set_nickname(string, nickname):
    """
    Test if this is a nickname setting message
    """
    if string.startswith(f"{nickname} set the nickname for "):
        return True

    if string.startswith(f"{nickname} set his own nickname to"):
        return True
        
    if string.startswith(f"{nickname} set her own nickname to"):
        return True
        
    if string.startswith(f"{nickname} set your nickname to"):
        return True 
    return False