To answer your question, #$! should be changed to $chr(35) $+ $!

But since there's a much simpler way, save yourself some headache by only using: join #$$?="channel?"