Convert all first letter to upper case, rest lower for each word

Posted by mrblah on Stack Overflow See other posts from Stack Overflow or by mrblah
Published on 2009-12-21T23:21:26Z Indexed on 2010/04/03 21:33 UTC
Read the original article Hit count: 272

Filed under:
|
|

I have a string of text (about 5-6 words mostly) that I need to convert.

Currently the text looks like:

THIS IS MY TEXT RIGHT NOW

I want to convert it to:

This Is My Text Right Now

I can loop through my collection of strings, but not sure how to go about performing this text modification.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#