Simplify replace_strings_by_objects to avoid a possible bug

3 jobs for topic/default/fix-bug-replace_strings_by_objects in 9 minutes and 22 seconds
Status Job ID Name Coverage
  Test
passed #79638
step_pythran_cython

00:07:43

passed #79637
step_pythran_then_cython

00:09:22

passed #79636
step_without_pythran

00:03:35