used regex replace in post and get with parameters rather then finding and replacing on the fly