Remove 'Use of uninitialized value in substr' warning
Merge pull request #2 from ershov/master

Remove 'Use of uninitialized value in substr' warning