Remove repeated char if three repeated occassions