my $i = $contiguous_characters_length - 1