code: function cda_name(name) {
      //this needs to be edited later to include prefixes
      var cdaNameObj = {};
      var nameArray, x, middleNameArr;
      //assuming that string is in last_name, first_name (middle name format)
      if (name.indexOf(",") >= 0) {
          nameArray = name.split(",");
          cdaNameObj.last = nameArray[0].trim();
          var firstAndMiddleArr = nameArray[1].trim().split(" ");
  
          //assuming first names can be more than one word
          middleNameArr = [];
          cdaNameObj.first = firstAndMiddleArr[0].trim();
          for (x = 1; x < firstAndMiddleArr.length; x++) {
              middleNameArr.push(firstAndMiddleArr[x].trim());
          }
          if (middleNameArr.length > 0) {
              cdaNameObj.middle = middleNameArr;
          }
      } else {
          nameArray = name.split(" ");
          if (nameArray.length === 2) {
              cdaNameObj.first = nameArray[0];
              cdaNameObj.last = nameArray[1];
          } else if (nameArray.length > 2) {
              cdaNameObj.first = nameArray[0];
              middleNameArr = [];
              for (x = 1; x < nameArray.length - 1; x++) {
                  middleNameArr.push(nameArray[x]);
              }
              if (middleNameArr.length > 0) {
                  cdaNameObj.middle = middleNameArr;
              }
              cdaNameObj.last = nameArray[nameArray.length - 1];
          }
      }
      return cdaNameObj;
  }
docs: /* Not in use at the moment, may be useful later.
  function processMoney(moneyString){
  
  moneyString = moneyString.trim();
  if(moneyString.indexOf('$') >=0){
  moneyString = moneyString.substring(moneyString.indexOf('$') + 1, moneyString.length);
  console.log(moneyString);
  }
  var dollarAmt = new Number(moneyString);
  console.log(dollarAmt);
  return dollarAmt;
  }