test for different capitalization
use isNaN instead of typeof