qtrim filtering
Task 11413 - Filtering code refactoring