String deformations induced by retardation effects in mesons