Rename 'res' variable to 'result'
Updating the uia_type_string code-level docs