Substring from different parts of a string
<p>I have a string which contains white characters and I want to substring some values from it.</p>

<pre><code>string mystring = "1. JoshTestLowdop 192";
 (from 1. to J there's a whitespace)
string FirstNO = mystring.Substring(0, mystring.IndexOf(' '));
string Name = mystring.Substring(mystring.IndexOf(' '), mystring.LastIndexOf(' '));
string ID = mystring.Substring(mystring.LastIndexOf(' ');
</code></pre>

<p>But unfortunately the string Name also contains the number 1 from the 192 ..which shouldn't.</p>

<p>Can someone explain ..what's wrong?</p>
