The tuning pegs may occasionally be treated with "peg dope" when they either slip too freely, causing the string to go flat or slack, or when they stick, making tuning difficult.
Violinists generally carry replacement sets of strings with their instruments to have a spare available in case one breaks.