escaped brackets in question while creating emulator from scratch