title: Checking if a string contains a particular substring in Velocity
body: <p>In Velocity I have a variable called $url which contains the following string:  [ContentId(2.7507), ContentId(2.7508), ContentId(1.44551)]</p>
  
  <p>I want to check if that string contains the substring 1.44551.</p>
  
  <p>This is the code I've written so far, but for some reason it's returning False:</p>
  
  <pre><code>#if($url.contains("1.44551"))
  &lt;p&gt;The article content id is 1.44551&lt;/p&gt;
  #else
  &lt;p&gt;The article content id isn't 1.44551&lt;/p&gt;
  #end
  </code></pre>
  
  <p>I would expect this to be returning True, as the 1.44551 substring is present in the $url variable.  Please can someone tell me where I'm going wrong?</p>