title: Using velocity split() to split a string into an array doesnt seem to work
body: <p>I HATE velocity and rarely ever use it but sometimes I am called upon at my job to do so. I can never really figure out just how to use it.</p>
  <p>I have this</p>
  <pre><code>#foreach( $product in $browseSiteProducts )
      alert(&quot;$product.productId&quot;);
      #foreach( $stringList in $product.productId.split(&quot;|&quot;) )
          alert(&quot;inner loop&quot;);
      #end
  #end
  </code></pre>
  <p><code>$browseSiteProducts</code> is an Array. Or List. Or whatever. I don't even know. The first alert of the productId works fine. I get &quot;<code>&lt;stuff&gt;|&lt;morestuff&gt;</code>&quot; which is what I expected when printed out. The inner loop then should split that on the &quot;|&quot; as the delimiter and give me to alerts of &quot;inner loop&quot;. But instead I always get 24 alerts because there are 24 characters in the productId. so split() is not delimiting correctly for me. What the heck am I doing wrong??</p>
  <p>Thanks
  Kyle</p>