fails:String#delete raises if the given ranges are invalid
