Fix check for null string