How can I place quote marks around a variable?

It had nothing directly to do with your originally stated problem.

Have you fixed the newline problem yet?