S.strip([chars])


leading and trailing


example:


my_str = '(d)d(d)))'        ->       'd)d(d'