Fixing tests
Fixed string functions for Python 2.6+