convert reverse polish exp to a string