title: String comparison does not work in python
body: <p>I'm writing a script that work with <code>tesseract-ocr</code>. I get text from screen and then I need to compare it with a string. The problem is that the comparison fails even if I'm sure that the strings are the same.</p>
  
  <p>How can I made my code works?</p>
  
  <p>Here my code:</p>
  
  <pre><code>import pyscreenshot as pss
  import time
  from pytesser import image_to_string
  
  buy=str("VENDI")
  buyNow=str("VENDI ADESSO")
  if __name__ == '__main__':
      while 1:
          c=0
  
          time.sleep(2)
          image=pss.grab(bbox=(1104,422,(1104+206),(422+30)))
          text = str(image_to_string(im))
          print text
          if text==buy or text==buyNow:
              print 'ok'
  </code></pre>
  
  <p>For example as input:  </p>
  
  <p><a href="https://i.stack.imgur.com/jguEH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jguEH.png" alt="Input image sample"></a></p>
  
  <p>And as output I get:</p>
  
  <blockquote>
    <p>VENDI ADESSO</p>
  </blockquote>
  
  <p>Which is the same string I need to compare, but during the execution I don't get <code>ok</code> on the console?</p>