A method of preparing a fluorinated aryl or heteroaryl substrate by mixing a quaternary ammonium cyanide and an aryl or heteroaryl substrate substituted with at least one chlorine, bromine, sulfonyl, or nitro group to obtain a mixture, and The mixture is mixed with hexafluorobenzene to obtain the fluorinated substrate.