In PowerShell, it is possible to index into a string the same way as selecting elements from an array. For example:
$myString = 'abcdefghijklmnopqrstuvwxyz' $myString[0] # This is a (the first character in the string) $myString[-1] # This is z (the last character in the string)