Here you can find the source of normalize(String[] slist)
public static String[] normalize(String[] slist)
//package com.java2s; //License from project: Apache License public class Main { public static String[] normalize(String[] slist) { if (slist == null) return null; String[] ret = new String[slist.length]; for (int i = 0; i < slist.length; i++) { ret[i] = normalize(slist[i]); }/* w w w . ja v a 2 s. c o m*/ return ret; } public static String normalize(String s) { if (s == null) return null; s = s.trim(); if (s.length() == 0) return null; return s; } }