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