Case-insensitive prefix/suffix stripping

For that sort of thing you could use a regex: replace(s, r"^https?://"i => "") instead of chopprefix, for example.

3 Likes