Processing the contents of the input field