created directive to output inputted text in an expression