Fix master by comparing against slices, not ~
Merge pull request #130 from alan-andrade/fix_master

Fix master by comparing against slices, not ~