remove useless strings