str typecasting bugfixes

Added str() typecast wherever needed. (Mainly before 'evals' and
comparisons!)