ranges-apply

Take an array of string index ranges, delete/replace the string according to them