strip query text before find or create