Fix string comparison
Merge pull request #7 from tomaszdurka/issue-7

Fix string comparion on open method