string and line length cleanup