change caps doctype to lowercase