Last active
September 1, 2015 11:53
-
-
Save RafPe/a3742e82ee261e917a75 to your computer and use it in GitHub Desktop.
If you need to change first character in proper way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$variableToChange = "all lowercase" | |
$result = -join ($variableToChange.Substring(0,1).ToUpper() ,$variableToChange.Substring(1,$variableToChange.Length-1 ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Get-Culture).TextInfo.ToTitleCase('rafpe ninja') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment