Python's strings have methods for checking whether a string starts or ends with specific text and for removing prefixes and suffixes.| www.pythonmorsels.com