Effective string picture for confining gauge theories at finite temperature