Adding square bracket handling for EmuQL