I am going to guess (because you did not properly explain) that you are concerned about the value that eventually ends up in PID-2.
If that is the case, then you have a couple of issues:
The PID-2 field is only defined in the 2.4 HL/7 set as 20 characters long (unless you have modified the variant) and it appears what you want to put in there is longer than that.
You are not treating xlateOutVals as a list and space (and it appears there are spaces in the text you want to store in xlateOutVals) delimits the list elements thus you only get the text up to the first space.
If I am not understanding what you are attempting, please clarify.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.