Are the symbols from a fixed set? You could then return an index in stead of the symbol name.