fix string comparison using equals