in reply to Grabbing a string....

I recently had some decent success with Andy Wardley's AppConfig.