Remove redundant strings.