title: Substring in c# to find second part in the string
body: <p>How to find the second part of the string using substring in c#</p>
  
  <p>I have follwwing string:</p>
  
  <pre><code>string str = "George Micahel R - 412352434";
  </code></pre>
  
  <p>I wanted the above string as two parts.Before "-" and after "-"</p>
  
  <p>I have my first part using following code:</p>
  
  <pre><code> string firstPart = str.Substring(0,str.IndexOf(" - "));
  </code></pre>
  
  <p>When I am trying  for the second part using the following code it gives me an error.</p>
  
  <pre><code> string secondPart = str.Substring(str.IndexOf(" - "), Len(str);
  </code></pre>
  
  <p>How to get the second part(only number)?</p>
  
  <p>Thanks in advance.</p>