Solution for evalStr