Fix bug DNN-5230: stop filter should apply before lower case filter.