Java tutorial
//package com.java2s; public class Main { public static String normalizePhoneNumber(String phoneNumber) { if (phoneNumber.startsWith("+86")) return phoneNumber.substring(3); if (phoneNumber.startsWith("86")) return phoneNumber.substring(2); return phoneNumber; } }