fix comparison operator for string tests