The Replace method returns a new string.
Replace:String( subString:String,withString:String )
The Replace:String tells you that Replace returns a String value.
Strict Local str:String="***** Hello *****" Print str.replace("*","=") Print str str = str.replace("*","=") Print strIt's not easy to find this in the documentation. Look in the Language reference, Strings section. There is a list of string methods, including this one:
Replace:String( subString:String,withString:String )
The Replace:String tells you that Replace returns a String value.