$string = 'The quick brown fox jumps over the lazy dog'
$string.Replace("brown","red")
Use the .Replace to Replace String using a plain text value
PS C:\> $string = 'The quick brown fox jumps over the lazy dog' >> $string.Replace("brown","red") The quick red fox jumps over the lazy dog