Fix bug caused by string not being passed to re.match().