String thermodynamics in and out of equilibrium: Boltzmann equations and random walks