Fixing the fix for the string comparison to work on older versions of Ruby