Check if a given HTML doctype string is valid