Trailing slash check