EditSession : add `replace` with doc and test