Removing space before EOF in repos