mac: add search bar and implement string modification