refactoring + LIKE and sanitize search