From http://stackoverflow.com/questions/19935405/removing-last-comma-from-a-foreach-loop