translate type to upper case