Retabbing and removing trailing whitespace