title: How do I save a formatted string into a string variable?
body: <p>I am creating a C# method that should<br>
  1. take in a string<br>
  2. format that string as Currency (no decimal or cents) and return it<br></p>
  
  <p><code>String.Format</code> is great at formatting, <strike>but its formatting applies only when printing or outputting the value.</strike> When I step through the code, I can clearly see that the value that is actually saved into the string is not formatted. But I need it to be formatted. And that's where your help is needed.</p>
  
  <p>In step 1 above, the string that is input will fall into 1 of 3 possible formats. (Below, I am using " to designate the beginning and end of strings. The " is not actually part of the string.)<br>
  1. "&#60;5000"<br>
  2. "5000-10000"<br>
  3. "&#62;10000"</p>
  
  <p>For these 3 examples, the method should output<br>
  1. "&#60;$5,000"<br>
  2. "$5,000 - $10,000"<br>
  3. "&#62;$10,000"</p>
  
  <p>Basically, the method should add $ and , where needed (what <code>String.Format</code> does so well). The rest of the formatting, like adding in &lt;, >, or - is easy. I can make a method to manually do this, but there's got to be an easier way!</p>