update example
remove the property name argument from format function argument list
add sanity checking