I think instance equality works here because we're talking about Strings, which Java interns, but better not to rely on that.