Fixed equality problem when comparing Strings and Characters.