Only break the match loop if exact match is found.