remove nonprintable lines