Replace tab/space mix by spaces, remove trailing whitespaces