print out method added
evaluate method added to for strings with more than 3 elements
evaluate method refined after debugging
further refinements after debgging