def remove_words(text:str, set_of_words):
    """
    Removes any words present in the text that are included in the set_of_words

    """
    words = text.strip().split()
    words = [word for word in words if word not in set_of_words]
    return ' '.join(words)