import re


def get_program_names(cartons_table):
    """
    Returns program names with only string in parenthesis 
    """
    programs = [re.findall('\(([^)]+)', prog)[0]
                if ('(' in prog) else prog  for
                prog in cartons_table['program']]
    return programs