Use split-with instead of 2 filter statements.