printf-like string prototype function