remove redundant strings