Here you can find the source of sanitizeName(String input)
public static String sanitizeName(String input) throws Exception
//package com.java2s; //License from project: Open Source License public class Main { public static String sanitizeName(String input) throws Exception { return blankIfNull(input).replaceAll("[^A-Za-z0-9]", ""); }/*from w w w .j a va 2s . co m*/ public static String blankIfNull(String input) throws Exception { if (input == null) { return ""; } return input; } }