deal with null in string