class ValidityTools {

	public static String getHostName ( String hostandport ) {
		String hostname = "";
		try {
			Matcher m = hostAndPortPattern.matcher( hostandport );
			m.matches( );
			hostname = m.group( 1 ).toLowerCase( ).trim( );
		} catch ( Exception e ) {}
		return hostname;
	}

}