How to format a string variable to Title Case

How to format a string variable to Title Case

"I want to learn the correct way to format or convert a string variable so that it appears in Title Case."