Exact finite size scaling with corrections in the two-dimensional Ising model with special boundary conditions