when I saw your "string length $x --> 1", I went "whoa!!"
No wonder they didn't compare, and seeing "" isn't enough to assume a zero-length string.
Thanks! Very good debigging tool. (smalling? no, I meant deBUGging)
-Jim