Critical dimension of string theories in curved space.