Correct parsing of URL’s in text & variable email subject generation