null terminate read string