Add null termination to strings