support proc for string rules