check if data is string and empty