Properly trim off line numbers.