Removed redundant strip methods. Fixed regex for finding exception name.