Account for spaces in dept filter