A simple example of an algorithm which squelches consecutive repeats of character sequences