title: Get index of 3rd comma
body: <p>For example I have this string params: <code>Blabla,1,Yooooooo,Stackoverflow,foo,chinese</code></p>
  
  <p>And I want to get the string <code>testCaseParams</code> until the 3rd comma: <code>Blabla,1,Yooooooo</code></p>
  
  <p>and then remove it and the comma from the original string so I get this<code>Stackoverflow,foo,chinese</code></p>
  
  <p>I'm trying this code but <code>testCaseParams</code> only shows the first two values (gets index of the 2nd comma, not 3rd...)</p>
  
  <pre><code> //Get how many parameters this test case has and group the parameters
          int amountOfInputs = 3;
          int index = params.indexOf(',', params.indexOf(',') + amountOfInputs);
          String testCaseParams = params.substring(0,index);
          params = params.replace(testCaseParams + ",","");
  </code></pre>