title: String Formatting C#
body: <p>I have a drop down control and the items look like this</p>
  
  <pre><code>Books(10)
  Glasses(230)
  Notebooks(27)
  </code></pre>
  
  <p>so basically i am grabbing the SelectedItem.Text; but I want to grab only the value before the amount in stock so when I grab it from SelectedItem.Text; it should look like this</p>
  
  <pre><code>string myString = (some code to get just the name without the stock i.e Books);
  </code></pre>
  
  <p>Thank you</p>