Replace tabs in extracted source with spaces and delete trailing whitespace