Added triple comparison and typeof comparison against a string.