function stuff(%string)
{
for(%q=0;%q<getWordCount(%string);%q++)
{
%word=getWord(%string,%q);
%char=getSubStr(%word,0,5);
if(%char $= "src=\"")
{
strReplace(%word,"src=\"","");
strReplace(%word,"\"","");
warn(%word);
return %word;
}
}
}
Just returns %word as if strReplace never happened. No errors occur or anything.