Join together a value and an associated API string if the value is not NULL
not_null(obj, string)
obj
R object to check whether it is NULL or not
string
API string to append to R object