possible values include imap and imaps, along with ExchangeWebServices.  Converting string to all lower case allows the first 2 to collapse into a single check, and its overall slightly more efficient.