function filterNum(str) {
re = /^\$|,|\.00/g;
// remove "$" and ","
return str.replace(re, "");
}

function filterPeriod(str) {
re = /\./g;
// remove "."
return str.replace(re, " ");
}
