it' important to note that none of rstrip()lstrip()or strip(removes whitespace from the middle of the string in each of the previous examplesthe space between "jean-lucand "picardis preserved determine if string starts or ends with particular string when you work with textsometimes you need to determine if given string starts with or ends with certain characters you can use two string methods to solve this problemstartswith(and endswith(let' look at an example consider the string "enterprisehere' how you use startswith(to determine if the string starts with the letters and nstarship "enterprisestarship startswith("en"false you tell startswith(which characters to search for by providing string containing those characters soto determine if "enterprisestarts with the letters and nyou call startswith("en"this returns false why do you think that isif you guessed that startswith("en"returns false because "enterprisestarts with capital ethen you're absolutely rightthe startswith(method is case sensitive to get startswith(to return trueyou need to provide it with the string "en"starship startswith("en"true you can use endswith(to determine if string ends with certain charactersstarship endswith("rise"true