Evaluate Reverse Polish

Fix a bug in approach 1: To compare the content in a string, should not
use ==, use .equals(). == compare the references.