Support near search with max interval by '*N?"A Z"' syntax

"?" in '*N?"A Z"' is replaced with number such as '*N5"A Z"'.