protected String replaceString(String aSearch, String aFind, String aReplace) {
String result = aSearch;
if (result != null && result.length() > 0) {
int a = 0;
int b = 0;
while (true) {
a = result.indexOf(aFind, b);
if (a != -1) {
result = result.substring(0, a) + aReplace + result.substring(a + aFind.length());
b = a + aReplace.length();
} else
break;
}
}
return result;
}