Extracting one cell/string from a table

I have filtered down my data to a single column with a title and a string

e.g.

Location
“New York”

I want to extract the string “New York” and use it to filter my data again.
e.g.
STRG = “New York”
|> filter(fn: (r) => r._measurement == STRG and r._field == “value” and r.status == “Good”)

Appreciate all the help I can get!