Sanitize line number in cot command (#282)