code: public static boolean matchesWithoutPrefixes(String value1, String prefix1, 
  			String value2, String prefix2) {
  		if (!value1.startsWith(prefix1)) {
  			return false;
  		}
  		value1 = value1.substring(prefix1.length());
  		
  		if (!value2.startsWith(prefix2)) {
  			return false;
  		}
  		value2 = value2.substring(prefix2.length());
  		
  		return value1.equals(value2);
  	}
docs: It removes prefixes from values and compare remaining parts.
  
  @param value1 first value to be checked
  @param prefix1 prefix of the first value
  @param value2 second value to be checked
  @param prefix2 prefix of the second value
  @return true when both values without their prefixes are equal