Remove comma at end of array