use str.replace i.s.o re.sub, cleanup a bit, reorganize
use new lang stuff also in network/lilydoc
oops
oops