String delete(String value, int offset, int length) { return value.substring(0, offset) + value.substring(offset + length); }