This method performs a search and replace operation on the string and returns the result.
| Parameter | Description | 
|---|---|
| searchtext | text to search for | 
| replacetext | text to replace with | 
Returns the string with all instances of the search term replaced with the replacement text.
#include "Leadwerks.h"
using namespace Leadwerks;
int main(int argc, const char* argv[])
{
    String s = "Hello, how are you today?";
    Print(s.Replace("you", "we"));
    return 0;
}