I saw the space, but in your case you need to be absolutely, 100% certain that there are no spaces in the incoming string!
If you have “L B1234” as the incoming value, then you will have “L B 1234” as xlateOutVals in your case. Which means you will get “L” in OBR.#3 and “B” in OBR.#4.
Just treat xlateOutVals as a list and not as a string, and you don’t need to worry about this!
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands