performance tweak on String::EndsWith