Remove trailing comma from Array