• What if you cheated and appended a few extra commas to your string so that it looked like:

    "ItemA,ItemB,,,", or "ItemA,,,"

    That way your split function would return a blank string.