Removing exception raise from string