Added limit on string compare