Abstract getting search string into another method

Abstract getting search string into another method, also allows over-riding.