To change the first letter after a space to UpperCase use the following code:
$Name = [Regex]::Replace($Name, '\b(\w)', { param($m) $m.Value.ToUpper() });
To change the first letter after a space to UpperCase use the following code:
$Name = [Regex]::Replace($Name, '\b(\w)', { param($m) $m.Value.ToUpper() });
Using Substring you can convert the first character to upper case of a string. Let’s say your string is $leverancier:
$Leverancier = $Leverancier.substring(0,1).toupper()+$Leverancier.substring(1).tolower()