The restoring force is given by the formula
F = -kx
The negative sign shows that the force is in the opposite direction.
k is the force constant.
x is the displacement of the string from the equilibrium position.