shorten matchprefix