cg_search - changed replace on strings of empty parameters --- &'s, was trimming a little too much