Made hashCodeStr robust to falsy values