Bosonic string theories with new boundary conditions