The info statements in Zoho Deluge can be helpful for debugging. However, they convert newlines to spaces before being posted.
In my case, I had some old records with a field that was accidentally multi-valued. I wanted to get the last instance of the value. In the records and in info statements, those values all looked like they had spaces between them. If I copy/pasted out of the record or info statements, they had spaces between them. However, those weren't actually spaces, they were newlines.
Example code:
productVersion = product.get("Version_Code");
info productVersion; //returns "2416 2416"
info productVersion.contains(" "); //returns "false"
I tried find, indexOf, lastIndexOf, contains, and several other commands before I realized the problem.
I don't know that there's anything to be done about this. I understand the convenience of seeing the string on one line instead of trying to display a multi-line string. I am just posting this in case anyone else wonders why Deluge cannot find the space that it just said is in the string.