Edit search variable