remove repeated symbols