Velocity allows you to use all Java methods available in your objects. So just write as if it was Java:
$string1.indexOf($string2)Velocity allows you to use all Java methods available in your objects. So just write as if it was Java:
$string1.indexOf($string2)