Replace value in-place.