make titlecasing and newlines parameterizable