Slight improvement of the check in equals(); make sure String.equals() gets called only as a last resort (for non-canonical Strings)