Replaced empty strings with NULLs