delete unuseful strings