A Variational Definition of the Strain-energy For An Elastic String