strip/lstrip/rstrip don't work like I thought

`"foobar".rstrip("rab")` returns "foo".
Friendlier exception

Testing using timeit.timeit shows no increase in execution time.
Merge pull request #402 from drkitty/has_perm-fixes

has_perm fixes