Try to escape your two strings to see what chars are in them. In this case (although Frédéric has covered possible cases) since you're using PGP, you probably have a binary non-printable char present.
escape(x);
escape(y);
in your console and you will be able to detect the char in action.