refactor, make search text optional for quotes