speed-up in matching patt. w/ leading/trailing '*'