check the table_desc and string, if either of them is NULL, return NULL.