Updated Top metric

incorporated comments from earlier pull request. 
space before line in re.match