How to use [strings.replace]
The reference page of strings.replace has its arguments, constraints and declaration.
This slot replaces occurrences of a string inside a string, with some other string. The simplest version is like follows.
.foo:thomas hansen
strings.replace:x:-
.:hansen
.:tjobing hansen
You can also reference slots and dynamic slots for that matter, assuming your slots somehow returns strings, or something that can be converted into a string, such as the following illustrates. Notice, this code will throw an exception, since there are probably no slots called “some-slot-returning-string” in your installation.
.what:hansen
.foo:thomas hansen
strings.replace:x:-
get-value:x:@.what
signal:some-slot-returning-string
arg1-to-slot:foo
arg2-to-slot:foo
Above the first argument is “what to look for”, and the second argument is “what to substitute it with”. The above is a general pattern for most of these slots, where the node arguments supplied to the slot will be evaluated as a lambda object, before the arguments are consumed, allowing you to use arguments that are the result of invoking other slots as arguments to your original outer most slot.