It doesn't work because strings are immutable. For instance, the
input.Remove()
method doesn't change the
input
variable content, instead it creates a new string instance (that you are discarding).
change from
Quote:
input.Remove(start, (endi + 1) - start)
input.Insert(start, "src=cid:image001")
to
input = input.Remove(start, (endi + 1) - start)
input = input.Insert(start, "src=cid:image001")