title: Velocity template substring issue
body: <p>I have an issue with extracting a substring in velocity.
  the string I have is 1M/1Y (the variable string here)
  I need to extract 1M and 1Y.
  what is the best way to do it?</p>
  
  <pre><code>#set($index=$string.index('/'))
  #set($val=$string.substring($index,index+2))
  </code></pre>
  
  <p>what am I doing wrong here?</p>