title: How to strip a value from a delimited string
body: <p>I have a list which i have joined using the following code:</p>
  
  <pre><code>patternCore = '|'.join(list(Broker['prime_broker_id']))
  
  patternCore
  'CITI|CS|DB|JPM|ML'
  </code></pre>
  
  <p>Not sure why i did it that way but I used patternCore to filter multiple strings at the same time. Please note that Broker is a dataFrame</p>
  
  <pre><code>Broker['prime_broker_id']
  29    CITI
  30      CS
  31      DB
  32     JPM
  33      ML
  Name: prime_broker_id, dtype: object
  </code></pre>
  
  <p>Now I am looking to strip one string. Say I would like to strip 'DB'. How can I do that please?</p>
  
  <p>I tried this  </p>
  
  <pre><code>patternCore.strip('DB')
  'CITI|CS|DB|JPM|ML'
  </code></pre>
  
  <p>but nothing is stripped </p>
  
  <p>Thank you </p>