def getUntilFirstBracket(text):
 dotIndex = text.find('(')
 if (dotIndex < 0):
  return text
 return text[:dotIndex]

def getUntilFirstBracket ( text ) : dotIndex = text . find ( '(' ) if ( dotIndex < 0 ) : return text return text [ : dotIndex ]
get the text until the first bracket .