Strings have an Insert() method. Insert(2,”x”) would insert “x” at the 2nd position. You could also use the PadLeft() or PadRight() methods, which accept a desired string length and the length you’d like the string padded to. So, if you wanted a string of 10 characters, $string.PadLeft(10,’A') would insert on the left however many A’s were needed to make it 10 characters.
↧