added updateByDiffMatchPatches api