fixing string crashes