fix bug in Q_strstrip where repeated strip chars are not handled correctly