converted rule from string to text