replaced empty strings with null