Returning a valid string with 0 termination