SERVER-6062 stripTrailing now erases sequences of symbols + some basicTests for it

2014 MongoDB