switched to kstrlen in kstring_new