POJOPropertiesCollector: Use equals() to compare strings contents

Instead of comparing references to strings compare their contents.
Merge pull request #261 from sschuberth/master

Use equals() to compare strings contents