fix string comparison to not use primitive equals operator