'niin mystr false mystr find('ni'- mystr '\ ni\nmystr strip('nimystr rstrip('\ niwhen not found remove whitespace samebut just on right side string methods also provide functions that are useful for things such as case conversionsand standard library module named string defines some useful preset variablesamong other thingsmystr 'shrubberymystr lower('shrubberycase converters mystr isalpha(true mystr isdigit(false content tests import string string ascii_lowercase 'abcdefghijklmnopqrstuvwxyzcase presetsfor 'in'etc string whitespace \ \ \ \ \ cwhitespace characters there are also methods for splitting up strings around substring delimiter and putting them back together with substring in between we'll explore these tools later in this bookbut as an introductionhere they are at workmystr 'aaa,bbb,cccmystr split(','['aaa''bbb''ccc'split into substrings list mystr ' \nc\ndmystr split([' '' '' '' 'default delimiterwhitespace delim 'nidelim join(['aaa''bbb''ccc']'aaanibbbnicccjoin substrings list join([' ''dead''parrot']' dead parrotadd space between system scripting overview