title: Capitalise and ignore comma
body: <p>I have this code:</p>
  <pre><code>def reverse (word):
      newword = ''
      letterflag = -1
      for numletter in word:
          newword += word[letterflag]
          letterflag-=1
          s=newword
      s.upper()
      return newword
    
  def isPalindrome(word, ignorecase=False):
  
      &quot;&quot;&quot;
      &gt;&gt;&gt; type(isPalindrome(&quot;bob&quot;))
      &lt;type 'bool'&gt;
      &gt;&gt;&gt; isPalindrome(&quot;abc&quot;)
      False
      &gt;&gt;&gt; isPalindrome(&quot;bob&quot;)
      True
      &gt;&gt;&gt; isPalindrome(&quot;a man a plan a canal, panama&quot;)
          True
      &gt;&gt;&gt; isPalindrome(&quot;A man a plan a canal, Panama&quot;)
      False
      &gt;&gt;&gt; isPalindrome(&quot;A man a plan a canal, Panama&quot;, ignorecase=True)
      True
      &quot;&quot;&quot;
      word = str (word)
      newword = reverse(word)
      if word == newword:
          return True
      else:
          return False
    
     
  </code></pre>
  <p>When I type &quot;Bob&quot;, I want it to return true because of the capital B.</p>