How to pad all strings in a comma separated set of strings : <p>Is there a way to pad each individual string in a comma separated string in one shot?</p>

<p>I can split the comma separated string, go through each string and pad it (with 0, for 3 character) and join the array elements again but not sure if it can be done in one shot.</p>

<p>For instance, if I have:</p>

<pre><code>var someString = "01,002,7"; 
</code></pre>

<p>how can I end up with "001,002,007"?</p>

<p>I can do this client side (jQuery) or server side (C#)</p>
