Ok, now I understand. you removed your original four function nodes and are now just joining the msgs coming out of the mqtt nodes. And the mqtt topic you subscribed to is what is in msg.topic and the actual topic's contain the slashes.
Put your four function nodesback in and join the outputs of them together and add a debug to the output of the join node and show the results.