[4.2] Suport Str : minor tweak

words : no need to used 2 separate conditions
snake : `$replace` does not need to be set that early
Safer? We're talking about `strlen()` here. ;)