Changed OffsetReplace to use start offset and length instead of start
and end offsets.