Checks for search text