substring class stubs.