It looks to me like the only way you could get a blank out is if the first subfield of what you’re passing in xlateInVals is empty.
You might want to break down your switch statement to make it easier to read. You don’t need to put it all on one line. Take a look at the TPS template, it has a nice example of a switch statement. I suspect that when you do that you may see where you haven’t accounted for all the possibilities.