replace expression in input text field with changed expression