Question: What would the code be to have a specific url running in a browser in a textbox of my site?I want that to be in html for use in blogspot.

Answer: 
I see your comment that trim() is still providing the NumberFormatException. 

My next guess is that there is an invisible ASCII character such as a BOM ([bye order mark](https://en.wikipedia.org/wiki/Byte_order_mark)) somewhere in your String. The best way to check this would be to run your string through the following function:

```
public static String displayCharValues(String s) {
StringBuilder sb = new StringBuilder();
for (char c : s.toCharArray()) {
    sb.append((int) c).append(",");
}
return sb.toString();}

```

If a BOM is present then you will see 65279 printed out as part of the sequence. If your String contains valid numbers then you should only see the corresponding ASCII codes assocatied with numbers (<http://www.asciitable.com/>). You should see your 1910 string print out as 49,57,49,48.
As @azurefrog pointed out, this is likely a whitespace issue. The following program parses correctly:

```
    String receivedString = "host::1910";

    String[] decodedString = receivedString.split("::");

    int serverPort = Integer.parseInt(decodedString[1]);

    System.out.println(serverPort);

```

However, if you add whitespace before 1910 then it throws a `NumberFormatException` like you indicated. The solution would be to use the [String.trim](http://docs.oracle.com/javase/8/docs/api/java/lang/String.html#trim--) to remove any white space.

```
    String receivedString = "host:: 1910";

    String[] decodedString = receivedString.split("::");

    int serverPort = Integer.parseInt(decodedString[1].trim());

    System.out.println(serverPort);

```