Replace eval with toString function