Simplified the parseTag function

A switch statement would be far more appropriate here.
This substring matching would allow for other class named the same, but in different namespace to be used. Sounds like a bad thing.