Fix name comparison

Jira issue: wp-1192
Merge pull request #39 from TobyEalden/wp-1192

Fix name comparison