Use lines equals to compare string sets