Validate number of arguments to substr and join
Support undefined in unparse