String simpleReplace(String str, String strFrom, String strTo) {
		if (str == null)
			return str;
		int fromLength = strFrom.length();
		if (fromLength == 0)
			return str;
		boolean isOnce = (strTo.indexOf(strFrom) >= 0);
		int ipt;
		String stemp = "";
		while (str.indexOf(strFrom) >= 0) {
			int ipt0 = 0;
			while ((ipt = str.indexOf(strFrom, ipt0)) >= 0) {
				stemp += str.substring(ipt0, ipt) + strTo;
				ipt0 = ipt + fromLength;
			}
			str = stemp + str.substring(ipt0, str.length());
			if (isOnce)
				break;
		}
		return str;
	}