removing useless strings