'Set the name of the company.'

def set_name(self, name):

    oname = name = name.strip()
    notes = u''
    if name.endswith(')'):
        fparidx = name.find('(')
        if (fparidx != (-1)):
            notes = name[fparidx:]
            name = name[:fparidx].rstrip()
    if self.notes:
        name = oname
    d = analyze_company_name(name)
    self.data.update(d)
    if (notes and (not self.notes)):
        self.notes = notes
