remove redundant string