Dear Stata users,

I have a string variable as the following:

ABC
DEF "XYZ"
GJK "LMN"
PQR
...

I would need to only keep values within "" and those without the quotes, that is:

ABC
XYZ
LMN
PQR
...


Thanks!