query for strings in URL from $ object