added log string comparison