public final static string HTTP = "http";
public final static string COLON = ":";
public final static string SLASH = "/";
public final static string WWW = "www";
with code likestring url = HTTP + COLON + SLASH + SLASH + WWW ....
Ignore any Java issues - not used it much in ~15 years.
Edit: I asked the developer who had written this what it was achieving and he said it was best practise ;-)