added rule for checking string type