Is it possible to rotate a window 90 degrees if it has the same length and width? [0, -1] extracts the first (0) and last (-1) element from the array returned by -split and returns them as a 2-element array. You may have already made the connection between the two; the separator can be considered the delimiter for the resulting . Very cool. When the strings are split, the delimiter is omitted from $website = "Shell Geek" # Break string by blank space $strArr = $website.Split() # Get the type of $strArr . The default character used to split the string is the whitespace. Write-Host "Delimiter is n" Write-Host "*****************" operator in PowerShell uses a regular expression in the delimiter, If you want to keep the delimiter you can do it with regex groups, but -split will output empty space where it thinks the content should be, so it takes an ugly workaround to make it work: # split based on a regular expression describing two digits \d\d # capture the digits in a group (\d\d) # Filter the output through Where-Object |? command splits up the collection. Split-Path [-Path]