The negative sign in the equation F = -kΔx indicates the action of the restoring force in the string.
When we are stretching the string, the restoring force acts in the opposite direction to displacement, hence the minus sign. It wants the string to come back to its initial position, and so restore it. Read more