So what you want to see in your variable value would be:
??? You might investigate the COMPRESS or COMPBL functions, which you could use to compress blanks from your variable or remove other characters from the string.
What you show looks like more than one variable, however. If you have multiple variables and you want to concatenate them together into one long character string, without spaces between, you might also investigate the concatenate operator, the TRIM function or the "CAT" family of functions, CATT, CATX and CATS.