Make matching * patterns more efficient, as requested by @kballard (I think this is equivalent to his suggestion...)