upgraded replace_zeroes_with_fives