[In Progress] function kvsprintf