title: Twig - replace string case insensitive
body: <p>I want to replace a text inside string using twig to make it bold, here's my code:</p>
  
  <pre><code>{{ string|replace({(text): '&lt;span style="font-weight: bold;"&gt;'~text~'&lt;/span&gt;'})|raw }}
  </code></pre>
  
  <p>In this example:</p>
  
  <pre><code>string = "Hello world!"
  text = "hello"
  </code></pre>
  
  <p>Will not replace the word 'Hello'. How can I make it to be case insensitive?</p>