To accurately compare a string to a number, use the VAL of the string. See the attached screenshot.