if(sb.length()>0) {
if(sb.length()>0 && !sb.toString().endsWith(",")) {
	public static void addCategory(String category) {		if(getCategories().contains(category)) {			return;		}		StringBuffer sb = new StringBuffer(				getCategoriesAsString()				);		if(sb.length()>0) {			sb.append(",");		}		sb.append(category);		System.out.println("New category string to store:"+sb.toString()+"  New category:"+category);		storeCategories(sb.toString());	}