Seems 
"public static String getLocalHostName() throws SocketException, UnknownHostException {"
is still less than 100 characters?