clean_output function

Clean Output From Code Responses