Handling for trailing slash in validation xpath