Change match query to string