complete stringToTransition