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;
	}

}

class TestValidityTools {

	static StorageManager sm;

	@Test
	public void testGetHostName() {


	}

}

class TestValidityTools {

	static StorageManager sm;

	@Test
	public void testGetHostName() {

	}

}