I'm trying to determine whether or not two strings match, and even though when I print them out, they're identical, it still says they don't match. I tried to cast them both as strings, and I tried using '===' instead of '==', but neither solved the problem...
When you "exploded" the string, you did so on "Availability:", but you still left the space between ":" and "Lorem". I believe you are comparing " Lorem Ipsum" to "Lorem Ipsum". Spaces count in string comparison.
Open in new window
and make sure there are no leading/trailing spaces in of of them.