title: python replace string at 2 parts in one line
body: <p>Source string: &quot; <strong>LTRIM(RTRIM(AB.ITEM_ID)) AS ITEM_NUMBER,</strong> &quot;</p>
  <p>convert LTRIM RTRIM to just TRIM and remove extra right parentheses.
  I need this to be converted to &quot; <strong>TRIM(AB.ITEM_ID) AS ITEM_NUMBER,</strong> &quot;</p>
  <p>Have many sql files which are written long back and need to be corrected as part of platform migration.
  this source string could be tons of places in each sql.
  I tried doing <strong>line.replace('LTRIM(RTRIM', 'TRIM')</strong> works but leaves with the extra right bracket.
  I want the extra brackget also to be removed at oneshot
  sample inputs:</p>
  <p>1.REPLACE(<strong>LTRIM(RTRIM</strong>(NVL(AB.ITEM_SHORT_DESC,AB.ITEM_DESC))<strong>)</strong>,',','') AS SHORT_DESC</p>
  <p>2.<strong>LTRIM(RTRIM(AB.ITEM_ID)</strong>)** AS ITEM_NUMBER,**</p>
  <p>please be advised the input is a full file as string and can have multiple occurrences and not just one line with this LTRIM(RTRIM . Sure have to use some regex etc.</p>
  <p>I am using python 3.8.2</p>