corrected how string was returned from the c string to java string conversion