Add string length limiting utility
Merge pull request #4 from stuntguy3000/master

Add inventory length checks