modify substring