title: C# Replace String.Split
body: <p>I have a string with this format "10,2/20,5/50,3"</p>
  
  <p>Those are wins of every player.
  "roomPrize,wins/nextRoomPrize,wins" etc</p>
  
  <p>I figured out how to read it but I want to change the amount of wins for some roomPrize. I've come this far.</p>
  
  <pre><code>winsRawData = getStatW.text; //That is the wins string formated as explained above
  
  string[] winSplits = winsRawData.Split('/');
  
  for(int i = 0; i &lt; winSplits.Length; i++)
  {
      if(winSplits[i].Split(',')[0] == room.ToString()) //room is the roomPrize that i want to affect
      {
          //newWins is the new win count that I want to update with
          //winSplits[i].Split(',')[1] == newWins;  &lt;-- I just need to do that
      }
  }
  </code></pre>
  
  <p>Thanks</p>