when relevant content is
added and updated.
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
PS> $str = ” abcdefghijk ”
You can also trim specific characters from the beginning or end of a string
PS> $str = “.,:abcdefghijk:,.”
PS> $tc = [char]’.’, [char]’,’, [char]’:’
You should now be able to handling any string trimming required in your code