Java String Sanitize sanitizeToString(String origMSISDN)

Here you can find the source of sanitizeToString(String origMSISDN)

Description

sanitize To String

License

Open Source License

Declaration

public static final String sanitizeToString(String origMSISDN) 

Method Source Code

//package com.java2s;

public class Main {

    public static final String sanitizeToString(String origMSISDN) {
        origMSISDN = origMSISDN.trim();/*from   w  w  w.ja v  a 2  s. c  o  m*/
        return origMSISDN.startsWith("86") ? origMSISDN : "86" + origMSISDN;
    }
}

Related

  1. sanitizeTextAsDomId(final String text)
  2. sanitizeTimezones(String s)
  3. sanitizeTokenString(final String tokenString)
  4. sanitizeToLineFeed(CharSequence string)
  5. sanitizeToLong(String origMSISDN)
  6. sanitizeTypename(String name)
  7. sanitizeUnicode(String str)
  8. sanitizeUserEmail(String userEmail)
  9. sanitizeUserName(final String userName)