Fixes Issue 9699 - Implement generic strip/stripLeft/stripRight functions which accept an element or a predicate.
Merge pull request #1311 from AndrejMitrovic/Fix9699_2

Issue 9699 - Implement generic strip/stripLeft/stripRight functions