Remove trailing comma on array