title: How to replace first occurrence of whitespace with comma?
body: <p>I have string as :</p>
  
  <pre><code>string sku= "plmca60     5";
  </code></pre>
  
  <p>I just wanted to replace first blank space with comma. Hence I tried:</p>
  
  <pre><code>sku.replace(" ",",");
  </code></pre>
  
  <p>But it  given me:</p>
  
  <pre><code>sku="plmca60,,,,,5";
  </code></pre>
  
  <p>Its because five blank spaces are there in the string. But I want to replace just first occurrence of blank space like;</p>
  
  <pre><code>sku="plmca60,    5"
  </code></pre>
  
  <p>How can I do like this?</p>