What would be the best way to handle this?
If I wanted to insert leading characters based on a length defined by a number. I would like to use in a PowerShell Script where I can do $value.length then subtract that from a predefined number. The difference would then define how many Aâ€™s are inserted at the start of the string.
$field = “10”
$value = â€œFARMâ€
$value.lengnth returns 4
$field - $value.length is 6.
Create new string of AAAAAAFARM