Remove repeated characters