$replace does not need to be set that early
use only one condition in words
Merge pull request #5729 from lucasmichot/4.2-support-str-snake

[4.2] Suport Str : minor tweak