Les i found the problem,

The IP address line had a tab at the end that
the gateway address didnt had.

When i removed it, i was able to do my comparison with no problem.

So much time for such a simple thing!

Fred