fix issues with string check