trim the clip before searching