old_contents: import re
  
  
  def strip_and_lowercase(value):
      return re.sub(r'[\s+|\W+]', '', value).lower()
  
new_contents: import re
  
  
  def strip_and_lowercase(value):
      return re.sub(r'\W+', '', value).lower()
  
subject: Simplify regular expression