fix: simplify checking of separators