compare symbol to string functioning