Elastic strings in solids: Thermal nucleation