add type to str mapping