Fix for python3 string check. #9