simplify slash check