Hi, I'm having trouble in running a foreach loop and it keeps showing the invalid name error to me. The commands I used are as following:

global NEWIVB "rfriend hfriend trelat rrelat hrelat"

foreach newivb of global `NEWIVB' {
ta `newivb'
ta `newivb', nolabel
recode `newivb' (1 = 3) (3 = 1) (4 = 0), gen(`newivb'_new)
ta `newivb'_new
}

And the error is like this below:
{ invalid name
r(198);

I'm not quiet sure if I type something wrong here and I'm wondering if anyone could give me a hint on that? Thank you so much!