def process_form_gene_set(text):
    """Process the string containing gene symbols and returns a gene set.

    :param str text: string to be processed
    :rtype: set[str]
    :return: gene set
    """
    return {
        word.strip().upper()
        for line in text.split('\n')
        for word in line.split(',')
        if word
    }