Added trim in mail search