remove trailing ws, adds extra lines to test