remove ~-strings