Adding lowercased name to the end element check
Merge pull request #1 from mdurrant/master

Adding lowercased name to the end element check