added null for string test, for null could be convert to a empty string