improvements to null or empty string handling in schema routines