Fixed the string check for travis-ci.