made string nan comparisions case insensitive