title: Reformatting a name to lastname,firstname
body: <p>I need your help here as I am not quite sure what I am doing here. How would I go about programmatically reformatting a name to lastname, firstname. I am going to also throw in some curve balls here:</p>
  
  <pre><code>Ex.1 John Michael Smith
  Smith, John Michael
  
  Ex.2 Richard P. Johnson
  Johnson, Richard P.
  
  Ex.3 Jane Doe
  Doe, Jane
  </code></pre>