$name = "aaabaaa" $name = $name -split "b"
aaa aaa
$name = "aaabaaa" $name = $name.split("b")[0]
aaa
$name = "aaabaaa" $name = $name.Replace('b','a')
aaaaaaa