I am using an API call that you pass a string buffer to and it returns a value.. its fine except that I need to concat the return value with another string in my function and return this total value. but since this string that is returned by the API call is null terminated, the concat doesnt work... so I need to string this return value of the null terminator.. any idea?

I tried trim, assigning it to another string, and several other things to get it to work..

while writing this I got an idea and tried it and it works...
Temp = Temp.Substring(0, Temp.Length - 1)

where temp was the trim value of the return string from the API function

but is this the most practicle way? or is there another common method for dealing with these types of strings?