# Add \`tuple\` argument option to str.removeprefix and str.removesuffix

**URL:** <https://discuss.python.org/t/add-tuple-argument-option-to-str-removeprefix-and-str-removesuffix/77815>\
**Category:** Ideas\
**Created:** [January 21, 2025, 3:10am UTC](https://discuss.python.org/t/add-tuple-argument-option-to-str-removeprefix-and-str-removesuffix/77815 "2025-01-21T03:10:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dg-pb](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/dg-pb/32/16248_2.png) [@dg-pb](https://discuss.python.org/u/dg-pb)\
**Post date:** [January 21, 2025, 3:41am UTC](https://discuss.python.org/t/add-tuple-argument-option-to-str-removeprefix-and-str-removesuffix/77815/3 "2025-01-21T03:41:46Z")

</div>

Yup, ordered. Remove the first one found.

This would be in line with how string search usually works for multiple patterns.

Also, in line with how “swappable” multi-string `str.replace` would look like. See: [Feature Proposal: Multi-String Replacement Using a Dictionary in the .replace() Method - #21 by dg-pb](https://discuss.python.org/t/feature-proposal-multi-string-replacement-using-a-dictionary-in-the-replace-method/68609/21)

---

_[View the full topic](https://discuss.python.org/t/add-tuple-argument-option-to-str-removeprefix-and-str-removesuffix/77815)._
