Trim hook command on log