str_a = "the_quick_brown_fox"
str_b = "the_quick_red_fox"
puts str_a.each_char.with_index
.find_index {|char, idx| char != str_b[idx] } || str_a.size
c3RyX2EgPSAidGhlX3F1aWNrX2Jyb3duX2ZveCIKc3RyX2IgPSAidGhlX3F1aWNrX3JlZF9mb3giCiAKcHV0cyBzdHJfYS5lYWNoX2NoYXIud2l0aF9pbmRleAogIC5maW5kX2luZGV4IHt8Y2hhciwgaWR4fCBjaGFyICE9IHN0cl9iW2lkeF0gfSB8fCBzdHJfYS5zaXpl