ported output functions as sstr() UDF