title: How to strip characters from the right side of every word in Python?
body: <p>Say, if I have a text like</p>
  
  <pre><code>text='a!a b! c!!!'
  </code></pre>
  
  <p>I want an outcome like this:</p>
  
  <pre><code>text='a!a b c'
  </code></pre>
  
  <p>So, if the end of each words is '!', I want to get rid of it. If there are multiple '!' in the end of a word, all of them will be eliminated.</p>