fixing string check in python 3.2