correcting a string