The attached branch fixes this problem. The problem seems to be caused when the variable that gets compared is actually not a string.
The attached branch fixes this problem. The problem seems to be caused when the variable that gets compared is actually not a string.