a cylindrical cup is filed with water. at the bottom (off center )a string is attached and the other end of the string is attached to a cork ball there by preventing it from floating. now the cup is rotated around its axis. what happens to the cork attached to string?

I am told that the string is slanted towards the axis . i thought it s slanting away from axis thereby providing the centripetal force, is it that the water is providing the centripetal force and the string is balancing it by slanting towards axis?