Replace strings with Type names