update some docs
change string.equals("") to string.trim().length==0