Properly Capitalize a Title Using PowerShell
Being married to someone who majored in English has made me extra conscious of my spelling and capitalization. So, for my blog posts, I’ve written a script to help me ensure my titles are properly capitalized. It is not perfect (i.e. it doesn’t do a dictionary lookup), but it follows the basic APA guidelines. I thought I would share it,...
String to uppercase on first letter only
$string.Substring(0,1).ToUpper() + $string.Substring(1,$string.Length-1).ToLower()