Fix #138

by using toUpperCase() to test dataType
Merge pull request #140 from Bootjack/master

Fix #138