replace Method

Purpose:

Replaces all occurrences of a string with a new string value

Syntax:

.replace("a","x")

Comments: 

This method is only valid for string variables.

Example:

abc = "abc"

p abc.replace("b","xx")

axxc