fix strings with only leading ones
Merge pull request #3 from ralphtheninja/master

bug with strings with only leading ones