Added support for string function names for the defaultHandler property