Finite-size corrections to the rotating string and the winding state