Add directive to format the input text value without breaking the model