title: Strange behavior of .Contains in Azure api management
body: <p>I'm facing this strange behavior in Azure API Management and am looking for a workaround.</p>
  <pre><code>&lt;set-variable name=&quot;isIOS&quot; value=&quot;@(context.Request.Headers[&quot;User-Agent&quot;].Contains(&quot;iOS&quot;))&quot; /&gt;
  </code></pre>
  <p>is always false, unless there is an exact match and the User-Agent value is exactly &quot;iOS&quot;.</p>
  <p>If it contains the full string (in my case) &quot;iOS Agent - xxxxx/1.2.4 (com.xxxxx.yyyyy.zz; build:108; iOS 14.3.0) Alamofire/4.9.1&quot; isIOS gets set &quot;false&quot;.</p>
  <p>Can somebody confirm this behavior and/or knows a workaround for this?</p>