public final static String replaceString(String origin, String search, String replaceto) {
String s = new String(origin);
StringBuffer buf=new StringBuffer();
int searchLen=search.length();
int startx;
while ((startx = s.indexOf(search)) != -1) {
buf.append(s.substring(0, startx));
buf.append(replaceto);;
s = s.substring(startx + searchLen);
}
buf.append(s);
return buf.toString();
}