removing space that should not be in xpath expression