title: State name spellcheck code not working with two word state names
body: <p>I am working on vetting someone else's state spellchecker. The test data they ran seemed to work fine, but trying a different data set, it doesn't seem to be able to get past the first word &quot;North&quot; in a state name.</p>
  <p>I need the code to be able to work with state names with two words.</p>
  <p>This is the code:</p>
  <pre><code>import sys
  !pip install pyspellchecker
  from spellchecker import SpellChecker
  #from google.colab import files
  import pandas as pd
  import io
  
  #Implement spellcheck.
  spell=SpellChecker()
  for ind in newDF.index:
    stateWordList = newDF['State'][ind].split()
    if len(stateWordList) == 1:
      #print(True)
      if stateWordList[0] in spell:
        pass
      else:
        correctState = input(&quot;'{}' is not a valid state, please enter a correct spelling:&quot;.format(stateWordList[0]))
        newDF.at[ind, 'State'] = correctState
    else:
      misspelledState = False in (stateWord in spell for stateWord in stateWordList)
      if misspelledState == True:
        pass
      else:
        correctState = input(&quot;'{}' is not a valid state, please enter a correct spelling:&quot;.format(stateWordList[0]))
        newDF.at[ind, 'State'] = correctState
  </code></pre>
  <p>Instead, it isn't seeing North WhateverState as valid, and returns:</p>
  <pre><code>'North' is not a valid state, please enter a correct spelling:
  </code></pre>
  <p>Does it need a condition specifically for two word names?</p>