check exact matches before stripping (fixes #452)
fix is written with support form @jonatack
Merge pull request #454 from timoschilling/fix_452

check exact matches before stripping (fixes #452)