evaluate reverse polish notation

String use .equals()