replace open and close tag characters from input fields