uppercase nodeName before checking

Fix issue #44.