here is a more generic function whis can do mor. not just eleiminate some characters but also replace characters for a in string
public function string of_replace (string as_string, string as_token, string as_replace);
string ls_text = ""
long ll_count, ll_n, ll_token, ll_pos, ll_start, ll_replace
IF IsNull( as_string) THEN as_string = ""
IF IsNull( as_token) THEN as_token = ""
IF IsNull( as_replace) THEN as_replace = ""
ll_start = 1
ll_token = len( as_token)
ll_replace = len( as_replace)
ls_text = as_string
ll_pos = Pos( ls_text, as_token, ll_start)
//-----------------------------------------------
//ll_pos = Pos( lower( ls_text), lower( as_token), ll_start)
// use this for a case - INSENSITIVE search/replace
//-----------------------------------------------
DO WHILE ll_pos > 0
ls_text = Replace( ls_text , ll_pos, ll_token, as_replace)
ll_start = ll_pos + ll_replace
ll_pos = Pos( ls_text, as_token, ll_start)
//-----------------------------------------------
//ll_pos = Pos( lower( ls_text), lower( as_token), ll_start)
// use this for a case - INSENSITIVE search/replace
//-----------------------------------------------
LOOP
RETURN ls_text
e-g. to eleiminate "." "," and ";" from a string use
new_string = of_replace ( old_string, ".", "")
new_string = of_replace ( new_string, ",", "")
new_string = of_replace ( new_string, ";", "")