Back in the files module you met a warning: .strip() hands you a new string, and calling it without catching the answer achieves nothing.
That wasn't a quirk of .strip().
It's true of every string method there is, and it comes from something deeper about how Python treats text.