new exists test and handle none string in sanitize