Adding helper method to determine oracle prefix length