title: How can we remove a ':' characters from a string?
body: <p>I have strings like </p>
  
  <pre><code>@lle @mme: #crazy #upallnight:
  </code></pre>
  
  <p>I would like to remove the words which starts with either <code>@</code> or <code>#</code>. It works perfectly fine if those words doesn't contain the ':' character. However, that ':' character is left whenever I delete the words. Therefore I decided to replace those ':' characters before I delete the words using a string.replace() function. However, they are still not removed. </p>
  
  <p><code>String example = "@lle @mme: #crazy #upallnight:";</code></p>
  
  <p><code>example.replace(':',' ');</code></p>
  
  <p>The result : <code>@lle @mme: #crazy #upallnight:</code></p>
  
  <p>I am pretty stuck here, anyhelp would be appreciated.</p>