Removing extra trailing comma