Fix error when using complex input names

Complex input names containing, e.g. underscores and brackets, caused
printThis() to throw an error.
Adding double-quotes in lines 122, 112, 136, and 147 corrected this behavior.