A string of natural length L extends to a new length L' under tensile force F. If Hooke’S law applies, the work done in stretching the spring is ------------

F=kx=k(L-L`)

k=F/(L-L`)
W=kx²/2= F (L-L`)²/2(L-L`)= F (L-L`)/2.