true see also the format string formatting method described later in this it provides more advanced substitution tools that combine many operations in single step againbecause there are so many methods available for stringswe won' look at every one here you'll see some additional string examples later in this bookbut for more details you can also turn to the python library manual and other documentation sourcesor simply experiment interactively on your own you can also check the help( methodresults for method of any string object for more hintsas we saw in running help on str method likely gives the same details note that none of the string methods accepts patterns--for pattern-based text processingyou must use the python re standard library modulean advanced tool that was introduced in but is mostly outside the scope of this text (one further brief example appears at the end of because of this limitationthoughstring methods may sometimes run more quickly than the re module' tools the original string module' functions (gone in xthe history of python' string methods is somewhat convoluted for roughly the first decade of its existencepython provided standard library module called string that contained functions that largely mirrored the current set of string object methods by popular demandin python these functions were made available as methods of string objects because so many people had written so much code that relied on the original string modulehoweverit was retained for backward compatibility todayyou should use only string methodsnot the original string module in factthe original module call forms of today' string methods have been removed completely from python xand you should not use them in new code in either or howeverbecause you may still see the module in use in older python codeand this text covers both pythons and xa brief look is in order here the upshot of this legacy is that in python xthere technically are still two ways to invoke advanced string operationsby calling object methodsor by calling string module functions and passing in the objects as arguments for instancegiven variable assigned to string objectcalling an object methodx method(argumentsis usually equivalent to calling the same operation through the string module (provided that you have already imported the module)string method(xargumentshere' an example of the method scheme in actions ' + + + replace('+''spam'string methods