Simplify number filtering