Fixed path filter bug when string contains a slash symbol.