pymel.util.common.capitalize

capitalize(s)

Python’s string ‘capitalize’ method is NOT equiv. to mel’s capitalize, which preserves capital letters.

>>> capitalize( 'fooBAR' )
'FooBAR'
>>> 'fooBAR'.capitalize()
'Foobar'
Return type:string