Null terminating output of external_command. Cleaning