reformat strings