'Helper to trim off any enclosing paranthesis
@param text: text which need to be trimmed
@return: text with front and rear paranthesis stripped'

@staticmethod
def __trim(text):

    if (isinstance(text, str) and (text[0] == '(') and (text[(-1)] == ')')):
        text = text[1:(-1)]
    return text
