'[MEG123, MEG124]'.strip('[]').replace(' ', '').split(',') makes everybody happy