removing trailing whitespace
contour and profiles from meshes