Adding max length to text directive