Fix the fix to the handling of backslash escaping in states, in order to replace all matches and not only the first one.
Updated built simulator.