string: More flexible {l,r}strip
Merge pull request #2334 from pao/topic/multistrip

RFC: More flexible string stripping