corrected equals for CharSequence