making sure we null terminate the strings.