set query as the string after last email address