trim excess spacing for filters