check string length, not dict length
Merge pull request #38 from brad/apns_size_fix

check string length, not dict length