Prefix matching on frontend