POJOPropertiesCollector: Use equals() to compare strings contents

Instead of comparing references to strings compare their contents.