You can easly write this yourself by using Pos(Lowercase(sSearch),Lowercase(sTemp),iPos) and then replacing part of the original string with your new value in a loop while Pos() > 0.