Use '==' instead of 'is' for string comparisons.

Using 'is' for comparing different but equal short strings may work in CPython, but it is implementation specific and shouldn't be relied on.