str = "How are you doing. " new_str = str.partition("How") print(new_str) #('', 'How', ' are you doing. ')