Cleanup of ws, tabs, etc