Fix expression handling for string comparisions without quotes (bug #4478)