I'm trying to remove a string from a var in sas.

```
Data test;
a='27,7,37';
b=7;
c=trnwrd(a,strip(put(b,2.)),'');
run;

```

I want to remove only the second 7 from the string a, not the 7 from 27,37.
How can I achieve this?
Thanks