check exact matches before stripping (fixes #452)

fix is written with support form @jonatack