added rule string checking