fixed string assignation error when source string is empty (NULL)