Here you can find the source of sanitizeToLong(String origMSISDN)
public static final long sanitizeToLong(String origMSISDN)
//package com.java2s; public class Main { public static final long sanitizeToLong(String origMSISDN) { return Long.parseLong(sanitizeToString(origMSISDN)); }/*w ww . j a v a 2s . co m*/ public static final String sanitizeToString(String origMSISDN) { origMSISDN = origMSISDN.trim(); return origMSISDN.startsWith("86") ? origMSISDN : "86" + origMSISDN; } }