I found a way in pure TI-BASIC to replace strings with other strings. It works for all non-empty strings. Here is the code, where Str1 is the original string, Str2 is the string to find, and Str3 is the string to replace with. It returns Str1 as the replaced string (of course, clean up X after the program).
inString(Str1,Str2→X While Ans sub(" "+Str1,1,Ans)+Str3+sub(Str1+" ",Ans+length(Str2),length(Str1)+2-Ans-length(Str2 sub(Ans,2,length(Ans)-2→Str1 inString(Ans,Str2,X-1+length(Str2→X End
Do you think we can take the necessary steps to add it to the forum?
:ClrHome:Disp "HOW DOES A","MATHEMATICIAN","LOSE WEIGHT? :Pause " :Pause "BINOMIALS! :Pause "(BUY NO MEALS)":ClrHome