Replace each substring found by another from a given position
fun [S S S I] S
Return : S a new string or nil if error