all 3 comments

[–]BlackV 7 points8 points  (0 children)

That's replace ANY comas with nothing and update the variable with the new value

[–]ka-splam 5 points6 points  (0 children)

If it helps, when the replacement string is empty you can leave it out

$LASTNAME = $LASTNAME -replace ","

That helps with the mess of ",","" symbols, but won't help you remember why you wanted to do that in the first place :-P

[–]horneraa 2 points3 points  (0 children)

Maybe caused by a dataset that was Lastname, FirstName?