Abort validation if tag is malformed
Fixed comment character counting for all tag types
Added test for counting actual comment chracters