Problem 7 (Evaluating a String)