PowerShell Trim – no its not a new slimming fad. Trimming is the act of removing characters – usually white space – from the beginning or end of a string.
You have three methods on the String class you can use
Trim
TrimEnd
TrimStart
PS> $str… Read the full text.