Flame test:
step 1.Dip the platinum wire to concentrated HCl
(some metal power might remain on the wire in the last time,so you should remove the metal remainder by concentrated HCl.)
eg.2HCl+Mg→MgCl2+H2
therefore the result in flame test can be more accurate