Loss and gain of carbon during char degradation