Unknown error in script - Creating lists

I’m looking to figure out what is the issue in below script. I want my prefix to change from SW to NW for all letters after letter C, but it reads only letter C and not the rest from the list. Is anyone able to help out?

If it is always “C” that you wish to use for splitting the list, you can separate the two lists at this point and insert strings into them respectively?

1 Like

Just use a simple conditional. Pull the first two characters from the string for the prefix. If the main string contains “A”, “B”, or “C”, return the original prefix, else return “NW”. Then simply rejoin or replace the prefixes.