only append to search string if it exists