The localization of the elastic potential energy associated with transverse and longitudinal waves in a stretched string is discussed. Some misunderstandings about different expressions for the density of potential energy encountered in the literature are clarified. The widespread opinion regarding the inherent ambiguity of the density of elastic potential energy is criticized.