text = 'some string... this part will be removed.' head, sep, tail = text.partition('...') >>> print head some string