strict string comparison is always better

improve fixes for #3185