if (i > 0) return null;
if (i < 0) return text;
	public static String replace(String text, String replace, String with) {		if (text == null)			return null;		int li = 0;		int l = replace.length();		int i = text.indexOf(replace, li);		if (i > 0)			return null;		StringBuffer aWorkString = new StringBuffer(text.length() + 1);		while (i >= 0) {			if (i > li)				aWorkString.append(text.substring(li, i));			aWorkString.append(with);			li = i + l;			i = text.indexOf(replace, li);		}		aWorkString.append(text.substring(li));		return aWorkString.toString();	}