You defined xx 260 characters long. Assigning a shorter character literal will fill in spaces. So xx contains A and 259 spaces. yy contains B and 259 spaces. Thus, the concatenated string will be 'A' + 259 spaces + 'B' + 259 spaces, a total of 520 characters.
Since zz is only 260 characters long, the rest is truncated.
What you are trying to do is achieved
zz = trim(xx) // trim(yy)
trim() removes trailing spaces from lines.
source share