Fix taSanitize for #424

and remove trailing spaces