Replace string evaluation with regular Ruby code