Ignore case sensitivity when checking if doctype is present