clean up collapse for strings