title: Splitting a Full Name into First and Last Name
body: <p>I have a list of customer whose name is given as a full name.
  I want to create a function that takes the full name as parameter and returns the first and last name separately. If this is not possible I can have two separate functions one that returns the first name and the other that returns the last name. The full name list contains names that have a maximum of three words.
  What I want is this:-</p>
  
  <ul>
  <li>When a full name is composed of two words. The first one should be
  the name and the second one should be the last name.</li>
  <li>When a full name is composed of three words. The first and middle words should   be the first name while the third word should be the last name.</li>
  </ul>
  
  <p>Example:-    </p>
  
  <pre><code>**Full Name**    
  John Paul White    
  Peter Smith    
  Ann Marie Brown    
  Jack Black    
  Sam Olaf Turner
  </code></pre>
  
  <p>Result:- </p>
  
  <pre><code>**First Name    Last Name**    
  John Paul     White    
  Peter         Smith      
  Ann Marie     Brown    
  Jack          Black    
  Sam Olaf      Turner
  </code></pre>
  
  <p>I have search and found solutions that are not working as intended and would like some advice.</p>