See cross post at : Need help with exception handling for a string