title: remove both commas and white space ruby
body: <p>I am new to ruby and my regex knowledge leaves a lot to be desired. I am trying to check if a string is a palindrome, but wish to ignore white space and commas.</p>
  
  <p>The current code I have is</p>
  
  <pre><code>def palindrome(string)
    string = string.downcase
    string = string.gsub(/\d+(,)\d+//\s/ ,"")
    if string.reverse == string
      return true
    else
      return false
    end
  end
  </code></pre>
  
  <p>Any assistance here would be greatly appreciated.</p>