Terminate hex strings.