Refactoring for each statement
<p>Hi I have written a function that is used to change text in a table cell, the table displays members of a team but is not in a readable format, so i have to convert the string output into a readable format. </p>

<p>This all works fine however I was wondering if anyone could help me re-factor this function as it seems abit crude ? </p>

<p>Jquery Code:</p>

<pre><code>$(".membersName").each(function() {

   var memberName = $(this).text();
   var splitmemberName = memberName.split("=");
   var finalNameSplit = splitmemberName[1].split(",");
   $(this).empty();
   $(this).append(finalNameSplit[0]);


});
</code></pre>

<p>Any help or tips would be greatly appreciated. Cheers in advance </p>
