Here you can find the source of sanitizeString(final String s)
final public static String sanitizeString(final String s)
//package com.java2s; // License as published by the Free Software Foundation; either public class Main { final public static String sanitizeString(final String s) { if (s == null) { return ""; } else {/*from ww w . ja v a 2 s . c o m*/ return s.trim(); } } }