removing new lines in null call_cmd outputs