How about `return currentSmtpMode.Equals("P", StringComparison.OrdinalIgnoreCase)`?