How does one convert an uppercase string to proper sentence-case? Example string:
"OPERATOR FAIL TO PROPERLY REMOVE SOLID WASTE"
Using titlecase(str) gives me:
titlecase(str)
"Operator Fail to Properly Remove Solid Waste"
What I need is:
"Operator fail to properly remove solid waste"
Is there an easy way to do this?
Let's use an even more appropriate function for this: string.capitalize
string.capitalize
>>> s="OPERATOR FAIL TO PROPERLY REMOVE SOLID WASTE" >>> s.capitalize() 'Operator fail to properly remove solid waste'
1.4m articles
1.4m replys
5 comments
57.0k users