Extract duplicate rule. Remove whitespaces.