Fixed incorrect prefix cut after match (issue #90)