string.replace(String old, String new) Creates a new string by replacing an existing sub-string with a new sub-string. This method is available only in an Edge Encryption rule action script. Table 1. Parameters Name Type Description old String The sub-string to be replaced. new String The sub-string replacing the old sub-string. Table 2. Returns Type Description String The string with the new sub-string.