Return a copy of the string with only its first character capitalized. Return centered in a string of length width . Padding is done using spaces.
Optional arguments start and end are interpreted as in slice notation.
Return an encoded version of the string. Default encoding is the current default string encoding. The default for errors is 'strict' , meaning that encoding errors raise a ValueError . Other possible values are 'ignore' and 'replace' . New in version 2.0.