convert emulator dimension from string to number