Changed adding a rule to an iterative approach, added some test cases, and fixed issue with 1 character labels