table string methods method capitalize( center(width[,pad] count(sub[start [end]] endswith(suffix[start [end]] expandtabs([tabsize] find(sub [start [end]] rfind(sub [start [end]] format(args*kwargss index(sub[start [end]] rindex(sub[start [end]] isalnum( isalpha( isdigit( islower( isspace( istitle( isupper( join(ts ljust(width [fill] rjust(width [fill] lower( upper( lstrip([chrs] partition(seps partition(seps replace(oldnew [maxreplace] split([sep [maxsplit]] rsplit([sep[,maxsplit]] splitlines([keepends] startswith(prefix[,start [,end]] strip([chars] rstrip([chars] swapcase( title( zfill(widthdescription capitalize the first letter centers the string in field of length width pad is padding character counts occurrence of the specified substring sub checks for the end for suffix replace tabs with spaces find the first occurrence of substring sub find last occurrence of substring sub format string find the first occurrence of sub find the last occurrence of sub checks whether all characters are alphanumerics checks whether all characters are alphabets checks whether all characters are digits checks whether all characters are lowercase checks whether all characters are spaces checks whether all characters are titlecased checks whether all characters are uppercase joins string in sequence with as separator left or right align in string of size 'widthchange string to lower or upper case remove leading white space or [chrsif provided partitions string based on seperator string 'sepit returns tuple (headseptailor ( """"if seperator is not provided partitions string but search from the last replace substring splits string using 'sepas delimiter maxsplit is the maximum number of split is used for checking from the end splits the string into list of line if keepends is then trailing newlines are preserved checks whether string starts with prefix removes leading and trailing white spaces or chars if provided changes the case of string return title-case version of string pads string with zeros on the left up to specified width some of the examples of commands in table are listed belows "meher krishna patels capitalize('meher krishna patels center( meher krishna patel center( meher krishna patel (continues on next page builtin types for representing data