title: Replacing multiple placeholders in a string
body: <p>I have a string with 2 placeholders, that I want to replace on runtime based on value calculations. what is the best way to do this. I have used the code below for single placeholder replacement,</p>
  
  <pre><code>   String posttData = @"data = google.visualization.arrayToDataTable([
                                  ['Label', 'Value'],
                                  ['Result', {0}]                           
                                  ]);
      var options = {
          width: 1200, height: 500, redFrom: 90, redTo: 100, yellowFrom: 75, yellowTo: 90, minorTicks: 5
      };
  </code></pre>
  
  <p>....result calculation </p>
  
  <pre><code>var x = posttData.Replace("{0}", result.ToString());
  ScriptManager.RegisterStartupScript(this, this.GetType(), "test", x, true);
  </code></pre>
  
  <p>How do I do the same for multiple replacements? if I need to add another option, </p>
  
  <pre><code>var options = {
                     width: 1200, height: 500, redFrom: 90, redTo: 100, yellowFrom: 75, yellowTo: 90, minorTicks: 5, max: {1}
  </code></pre>