fixing string bits and pieces