return trim position of best scoring match