retab and strip trailing ws