Remove huge try/except block, iterative str split