Here you can find the source of stringNull(String s)
public static String stringNull(String s)
//package com.java2s; public class Main { public static String stringNull(String s) { if (s != null) { s = s.trim();//ww w .j a v a2s. co m if (s.equals("") || s.equalsIgnoreCase("null")) s = ""; } return s; } }