fix for string check