Don't use "is" for string comparisons (it compares object identity, and isn't guaranteed to work).