title: split string before hyphen - asp.net c#
body: <p>I have a string :</p>
  
  <pre><code>10989898 - test1
  </code></pre>
  
  <p>or another example:</p>
  
  <pre><code>123178239182 - test2
  </code></pre>
  
  <p>I need the output like this:</p>
  
  <p>In first case:</p>
  
  <pre><code>10989898 
  </code></pre>
  
  <p>In second case:</p>
  
  <pre><code>123178239182
  </code></pre>
  
  <p>means the value before hyphen. How can I do that?</p>