explicit cast of field value to string type before applying of regex validator