Saves text input to the model