sortedstring: fix insert/delete
memstore: make copy of content