Added ability to define custom query method. The default query method interprets query as string, not as regex. The default query method is case insensitive.