The following functions are available to operate on string and Unicode objects. They are not available as string methods.
- capword(s): Splits the argument into words using split(), capitalize each word using capitalize(), and join the capitalized words using join(). Note that this functon replaces series of whitespace characters with a single space and removes both leading and trailing whitespace.
- maketrans(from, to): Returns a translation table suitable for passing to [n]translate() or regex.compile(). Each character in from maps into the character at the same position in to; from and to must therefore have the same length.