title: Finding words with and without whitespaces in Rails and Postgresql
body: <p>I'm trying to figure out a statement I can use in Ruby on Rails that does a SQL query to match a word that might or might not have any whitespaces with a similar word that also might or might not have any whitespaces. 
  For example:</p>
  
  <blockquote>
    <p>Matthew Jones
    or
    MatthewJones</p>
  </blockquote>
  
  <p>should match</p>
  
  <blockquote>
    <p>Matthew Jones
    or
    MatthewJones</p>
  </blockquote>