title: Is there a way to detect if unnecessary characters are added to strings to bypass spam detection?
body: <p>I'm building a simple spam classifier and from a cursory look at my dataset, most spams put spaces in between &quot;spammy&quot; words, which I assume is for them to bypass spam classifier. Here's some examples:</p>
  <ul>
  <li>c redi t card</li>
  <li>mort - gage</li>
  </ul>
  <p>I would like to be able to take these and encode them in my dataframe as the correct words:</p>
  <ul>
  <li>credit card</li>
  <li>mortgage</li>
  </ul>
  <p>I'm using Python by the way.</p>