added method to replace url query string values.