First of all, you should probably show your input as well as your output.
Secondly, trim () removes leading and trailing spaces , so you want concat(trim(var1), trim(var2)) instead of trimming the concatenated version, which now has internal spaces.
update: Or, as other answers say, just use replace (). But thatโs why trim () didnโt work the way you wanted.
source share