Remove comma from the end of an enum.