public static string TransformMarshallLocationName(bool isEC2Protocol, string locationName) { if (string.IsNullOrEmpty(locationName) || !isEC2Protocol) return locationName; return string.Concat(locationName.Substring(0, 1).ToUpper(), locationName.Substring(1)); }