replace input text to input field