# String.strip function has weird result

**URL:** <https://discuss.python.org/t/string-strip-function-has-weird-result/3255>\
**Category:** Python Help\
**Created:** [February 14, 2020, 11:24pm UTC](https://discuss.python.org/t/string-strip-function-has-weird-result/3255 "2020-02-14T23:24:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![facelessuser](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/facelessuser/32/1971_2.png) [@facelessuser](https://discuss.python.org/u/facelessuser)\
**Post date:** [February 14, 2020, 11:43pm UTC](https://discuss.python.org/t/string-strip-function-has-weird-result/3255/2 "2020-02-14T23:43:52Z")

</div>

This is the expected behavior. Strip will strip out of the string all the characters that you provide. You provided `.`, `g`, `i`, and `t`. All those characters got stripped out in both examples.

---

_[View the full topic](https://discuss.python.org/t/string-strip-function-has-weird-result/3255)._
