binding for removing trailing whitespace avoids highlighting search