convert Code to upper case, ignore invalid  init